[Sound] Set volume on game startup

On startup, the internal emulator sound volume is set to 100%. The user
value in the wx frontend is not used until the emulator volume slider is
modified, resulting in games starting with volume at 100% on startup.

This fixes #1407 by always setting the internal emulator sound volume on
game startup.
This commit is contained in:
Fabrice de Gans
2025-02-08 12:20:27 -08:00
parent 2ab707c0ca
commit f6b3a6cb6c

View File

@@ -437,6 +437,9 @@ void GameArea::LoadGame(const wxString& name)
emusys = &GBASystem;
}
// Set sound volume.
soundSetVolume((float)OPTION(kSoundVolume) / 100.0);
if (OPTION(kGeomFullScreen)) {
GameArea::ShowFullScreen(true);
}