Skip to content

Commit

Permalink
fix: don't update initial volume when a mixer is configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
tooxo authored and devgianlu committed Jul 25, 2024
1 parent ebcd739 commit 8ed8c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/daemon/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (p *AppPlayer) handleDealerMessage(msg dealer.Message) error {
return fmt.Errorf("failed initial state put: %w", err)
}

if !p.app.cfg.ExternalVolume && len(*p.app.cfg.MixerDevice) != 0 {
if !p.app.cfg.ExternalVolume && len(*p.app.cfg.MixerDevice) == 0 {
// update initial volume
p.initialVolumeOnce.Do(func() {
p.updateVolume(*p.app.cfg.InitialVolume * player.MaxStateVolume / *p.app.cfg.VolumeSteps)
Expand Down

0 comments on commit 8ed8c26

Please sign in to comment.