mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
Close the audio driver after unloading the game to avoid blocking threads that are pushing audio
This commit is contained in:
parent
66367d41a3
commit
e52f90926d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user