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
This commit is contained in:
CasualPokePlayer 2025-01-06 13:35:14 -08:00
parent fafb1ab3e3
commit 08e3246ec9
1 changed files with 6 additions and 1 deletions

View File

@ -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,
() =>
{