mirror of https://github.com/stella-emu/stella.git
Terminate audio after the SoundSDL2 has been destroyed.
This commit is contained in:
parent
cac27b5260
commit
f1a384fa83
|
@ -91,6 +91,7 @@ SoundSDL2::~SoundSDL2()
|
||||||
if (!myIsInitializedFlag) return;
|
if (!myIsInitializedFlag) return;
|
||||||
|
|
||||||
SDL_CloseAudioDevice(myDevice);
|
SDL_CloseAudioDevice(myDevice);
|
||||||
|
SDL_QuitSubSystem(SDL_INIT_AUDIO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue