fix repeating sound buffer when calling client.SetSoundOn

This commit is contained in:
zeromus 2019-04-08 16:09:26 -04:00
parent b14332d352
commit 41c57e5217
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ namespace BizHawk.Client.EmuHawk
public static void SetSoundOn(bool enable)
{
Global.Config.SoundEnabled = enable;
GlobalWin.Sound.StopSound();
GlobalWin.Sound.StartSound();
}
[LuaMethodExample("if ( client.GetSoundOn( ) ) then\r\n\tconsole.log( \"Gets the state of the Sound On toggle\" );\r\nend;")]