Apply volume setting to BizBox not hawk sfx
This commit is contained in:
parent
af0b10fb58
commit
24d549ddb8
|
@ -1221,7 +1221,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void AboutMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using BizBox form = new(() => Sound.PlayWavFile(Properties.Resources.GetNotHawkCallSFX(), atten: 1.0f));
|
||||
var atten = Config.SoundEnabledNormal ? Config.SoundVolume / 100.0f : 0.0f;
|
||||
using BizBox form = new(() => Sound.PlayWavFile(Properties.Resources.GetNotHawkCallSFX(), atten));
|
||||
this.ShowDialogWithTempMute(form);
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void PlayWavFile(Stream wavFile, float atten)
|
||||
{
|
||||
if (atten <= 0) return;
|
||||
if (!Config.SoundEnabled || atten <= 0) return;
|
||||
try
|
||||
{
|
||||
_outputDevice.PlayWavFile(wavFile, Math.Min(atten, 1));
|
||||
|
|
Loading…
Reference in New Issue