mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 20:15:38 +00:00
The audio stream is no longer freed on shutdown which avoids a random SDL crash bug.
This commit is contained in:
parent
8feb42b56a
commit
73ea38008f
|
@ -122,7 +122,12 @@ void AudioManager::init()
|
|||
|
||||
void AudioManager::deinit()
|
||||
{
|
||||
SDL_FreeAudioStream(sConversionStream);
|
||||
// Due to bugs in SDL, freeing the stream causes random crashes. This is reported to the
|
||||
// user on some operating systems such as macOS, and it's annoying to have a crash at the
|
||||
// end of debugging session. So we'll simply disable the function until it has been properly
|
||||
// fixed in the SDL library.
|
||||
// SDL_FreeAudioStream(sConversionStream);
|
||||
|
||||
SDL_CloseAudio();
|
||||
SDL_QuitSubSystem(SDL_INIT_AUDIO);
|
||||
sInstance = nullptr;
|
||||
|
|
Loading…
Reference in a new issue