oops, and also make that previous commit cleaner

This commit is contained in:
adelikat 2014-05-15 00:00:02 +00:00
parent 2b89c32e4b
commit 9414173a7c
2 changed files with 8 additions and 1 deletions

View File

@ -71,7 +71,7 @@ namespace BizHawk.Client.EmuHawk
VolumeDown();
break;
case "Toggle Sound":
Global.Config.SoundEnabled ^= true;
ToggleSound();
break;
case "Record A/V":
RecordAv();

View File

@ -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;