[Sound] Set volume on game startup (#1410)
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:
parent
2ab707c0ca
commit
e4f17d33ce
|
@ -437,6 +437,9 @@ void GameArea::LoadGame(const wxString& name)
|
||||||
emusys = &GBASystem;
|
emusys = &GBASystem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set sound volume.
|
||||||
|
soundSetVolume((float)OPTION(kSoundVolume) / 100.0);
|
||||||
|
|
||||||
if (OPTION(kGeomFullScreen)) {
|
if (OPTION(kGeomFullScreen)) {
|
||||||
GameArea::ShowFullScreen(true);
|
GameArea::ShowFullScreen(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue