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) {
|
void audioLimit_Mute(bool onNotOff) {
|
||||||
if (onNotOff) {
|
if (onNotOff) {
|
||||||
if (audioIsMuted) return;
|
if (audioIsMuted) {
|
||||||
|
audioShouldBecomeMuted = false;
|
||||||
|
audioShouldBecomeUnmuted = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
audioShouldBecomeMuted = true;
|
audioShouldBecomeMuted = true;
|
||||||
audioShouldBecomeUnmuted = false;
|
audioShouldBecomeUnmuted = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!audioIsMuted) return;
|
if (!audioIsMuted) {
|
||||||
|
audioShouldBecomeMuted = false;
|
||||||
|
audioShouldBecomeUnmuted = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
audioShouldBecomeMuted = false;
|
audioShouldBecomeMuted = false;
|
||||||
audioShouldBecomeUnmuted = true;
|
audioShouldBecomeUnmuted = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user