Close the audio driver after unloading the game to avoid blocking threads that are pushing audio

This commit is contained in:
Flyinghead 2018-08-14 00:16:08 +02:00
parent 66367d41a3
commit e52f90926d

View File

@ -402,7 +402,6 @@ bool core_unload(void)
bool core_unload_game(void)
{
video_driver_free_hw_context();
audio_driver_stop();
video_driver_set_cached_frame_ptr(NULL);
@ -410,6 +409,8 @@ bool core_unload_game(void)
current_core.game_loaded = false;
audio_driver_stop();
return true;
}