From 33f52599f8967e6956763f156ab6f64bd53c526c Mon Sep 17 00:00:00 2001 From: hegyak Date: Wed, 19 Nov 2014 01:00:35 +0000 Subject: [PATCH] Fix Issue 310 --- BizHawk.Client.EmuHawk/config/SoundConfig.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/config/SoundConfig.cs b/BizHawk.Client.EmuHawk/config/SoundConfig.cs index 33a54ff2ef..6117d8e6a5 100644 --- a/BizHawk.Client.EmuHawk/config/SoundConfig.cs +++ b/BizHawk.Client.EmuHawk/config/SoundConfig.cs @@ -66,16 +66,27 @@ namespace BizHawk.Client.EmuHawk private void SoundVolNumeric_ValueChanged(object sender, EventArgs e) { SoundVolBar.Value = (int)SoundVolNumeric.Value; + //This is changed through the user or the Above Scroll Bar + //Is it Zero? Mute + if (SoundVolBar.Value == 0) + { + SoundOnCheckBox.Checked = false; + } + // Not Zero. Unmute + else + { + SoundOnCheckBox.Checked = true; + } } private void SoundOnCheckBox_CheckedChanged(object sender, EventArgs e) { UpdateSoundDialog(); } - private void UpdateSoundDialog() { - SoundVolGroup.Enabled = + //Ocean Prince commented this out + //SoundVolGroup.Enabled = MuteFrameAdvance.Enabled = ThrottlecheckBox.Enabled = SoundOnCheckBox.Checked;