Fix bug with Mute Frame Advance

It will actually mute when you hold the Frame Advance button.

Previously, the setting did nothing.
This commit is contained in:
Meerkov 2016-09-28 22:02:38 -07:00
parent 49d7f79ce5
commit d3547b15d4
1 changed files with 3 additions and 3 deletions

View File

@ -2691,12 +2691,12 @@ namespace BizHawk.Client.EmuHawk
if (Global.ClientControls["Frame Advance"] || PressFrameAdvance || HoldFrameAdvance)
{
_runloopFrameadvance = true;
// handle the initial trigger of a frame advance
if (_frameAdvanceTimestamp == 0)
{
PauseEmulator();
runFrame = true;
_runloopFrameadvance = true;
_frameAdvanceTimestamp = currentTimestamp;
}
else
@ -2804,8 +2804,8 @@ namespace BizHawk.Client.EmuHawk
if (Global.Config.SoundEnabledNormal)
atten = Global.Config.SoundVolume / 100.0f;
if (_runloopFrameadvance && !Global.Config.MuteFrameAdvance)
if (_runloopFrameadvance && Global.Config.MuteFrameAdvance)
{
atten = 0;
}