Fixed the crash that would occur if the audio backend is switched before a game is loaded.
This commit is contained in:
parent
e4959e111f
commit
17282fd988
|
@ -2472,7 +2472,9 @@ EVT_HANDLER_MASK(SoundConfigure, "Sound options...", CMDEN_NREC_ANY)
|
|||
|
||||
soundSetVolume((float)gopts.sound_vol / 100.0);
|
||||
update_opts();
|
||||
soundReset();
|
||||
|
||||
if (emulating)
|
||||
soundReset();
|
||||
}
|
||||
|
||||
EVT_HANDLER(EmulatorDirectories, "Directories...")
|
||||
|
|
Loading…
Reference in New Issue