mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 10:17:16 +02:00
Alsa mute all hw channels
This commit is contained in:
parent
7c71e0346b
commit
ed81b90186
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ void AlsaPlayer::setHardwareVolume(double volume, bool muted)
|
|||
try
|
||||
{
|
||||
int val = muted ? 0 : 1;
|
||||
int err = snd_mixer_selem_set_playback_switch(elem_, SND_MIXER_SCHN_MONO, val);
|
||||
int err = snd_mixer_selem_set_playback_switch_all(elem_, val);
|
||||
if (err < 0)
|
||||
LOG(ERROR, LOG_TAG) << "Failed to mute, error: " << snd_strerror(err) << "\n";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue