Commit e89db3c5 authored by Christian Esken's avatar Christian Esken
Browse files

Fix toggle mute.

CCBUGS: 309334
parent 19a63b05
......@@ -245,7 +245,7 @@ bool MixDevice::isVirtuallyMuted()
return !hasPhysicalMuteSwitch() && isMuted();
}
void MixDevice::setMuted(bool mute) { _playbackVolume.setSwitch(!mute); }
void MixDevice::toggleMute() { setMuted( !_playbackVolume.isSwitchActivated()); }
void MixDevice::toggleMute() { setMuted( _playbackVolume.isSwitchActivated()); }
bool MixDevice::hasMuteSwitch() { return playbackVolume().hasVolume() || playbackVolume().hasSwitch(); }
bool MixDevice::hasPhysicalMuteSwitch() { return playbackVolume().hasSwitch(); }
bool MixDevice::isRecSource() { return ( _captureVolume.hasSwitch() && _captureVolume.isSwitchActivated() ); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment