From 08e3246ec9e7254edaf363ffa5e80b16938e95b8 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:35:14 -0800 Subject: [PATCH] Use config SoundVolume for retroachievement sound effects Probably want this to be a separate setting later on, but this is probably better than forced 100% volume --- src/BizHawk.Client.EmuHawk/MainForm.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/MainForm.cs b/src/BizHawk.Client.EmuHawk/MainForm.cs index 644b2fc02e..00915a1c41 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.cs @@ -4739,7 +4739,12 @@ namespace BizHawk.Client.EmuHawk InputManager, Tools, () => Config, - wavFile => Sound.PlayWavFile(wavFile, 1), // TODO: Make this configurable + wavFile => + { + // TODO: Probably want to have wav volume a different setting? + var atten = Config.SoundEnabledNormal ? Config.SoundVolume / 100.0f : 0.0f; + Sound.PlayWavFile(wavFile, atten); + }, RetroAchievementsMenuItem.DropDownItems, () => {