Fixed the audio mute method so we can mute and un-mute even when we are not rendering.
--HG-- branch : nfb
This commit is contained in:
@@ -1954,12 +1954,20 @@ static bool audioShouldBecomeUnmuted = false;
|
||||
|
||||
void audioLimit_Mute(bool onNotOff) {
|
||||
if (onNotOff) {
|
||||
if (audioIsMuted) return;
|
||||
if (audioIsMuted) {
|
||||
audioShouldBecomeMuted = false;
|
||||
audioShouldBecomeUnmuted = false;
|
||||
return;
|
||||
}
|
||||
audioShouldBecomeMuted = true;
|
||||
audioShouldBecomeUnmuted = false;
|
||||
}
|
||||
else {
|
||||
if (!audioIsMuted) return;
|
||||
if (!audioIsMuted) {
|
||||
audioShouldBecomeMuted = false;
|
||||
audioShouldBecomeUnmuted = false;
|
||||
return;
|
||||
}
|
||||
audioShouldBecomeMuted = false;
|
||||
audioShouldBecomeUnmuted = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user