fix repeating sound buffer when calling client.SetSoundOn
This commit is contained in:
parent
b14332d352
commit
41c57e5217
|
@ -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;")]
|
||||
|
|
Loading…
Reference in New Issue