diff --git a/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs b/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs index 8ce5638c9a..e6d5256553 100644 --- a/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs +++ b/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs @@ -71,7 +71,7 @@ namespace BizHawk.Client.EmuHawk VolumeDown(); break; case "Toggle Sound": - Global.Config.SoundEnabled ^= true; + ToggleSound(); break; case "Record A/V": RecordAv(); diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index fc5864f3d1..ac8763255e 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -1872,6 +1872,13 @@ namespace BizHawk.Client.EmuHawk GlobalWin.OSD.AddMessage("Volume " + Global.Config.SoundVolume); } + public static void ToggleSound() + { + Global.Config.SoundEnabled ^= true; + GlobalWin.Sound.UpdateSoundSettings(); + GlobalWin.Sound.StartSound(); + } + private static void VolumeDown() { Global.Config.SoundVolume -= 10;