Skip to content

Commit

Permalink
refactor: cleanup unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Oct 20, 2024
1 parent 2bd5800 commit 8825312
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ type Player struct {
cmd chan playerCmd
ev chan Event

externalVolume bool
volumeSteps uint32
volumeSteps uint32

startedPlaying time.Time
}
Expand Down Expand Up @@ -71,6 +70,7 @@ func NewPlayer(sp *spclient.Spclient, audioKey *audio.KeyProvider, normalisation
normalisationEnabled: normalisationEnabled,
normalisationPregain: normalisationPregain,
countryCode: countryCode,
volumeSteps: volumeSteps,
newOutput: func(reader librespot.Float32Reader, volume float32) (*output.Output, error) {
return output.NewOutput(&output.NewOutputOptions{
Reader: reader,
Expand All @@ -84,10 +84,9 @@ func NewPlayer(sp *spclient.Spclient, audioKey *audio.KeyProvider, normalisation
ExternalVolumeUpdate: externalVolumeUpdate,
})
},
externalVolume: externalVolume,
volumeSteps: volumeSteps,
cmd: make(chan playerCmd),
ev: make(chan Event, 128), // FIXME: is too messy?

cmd: make(chan playerCmd),
ev: make(chan Event, 128),
}

go p.manageLoop()
Expand Down

0 comments on commit 8825312

Please sign in to comment.