From e52f90926d9dea4b23e47ae05f01c7a5515df140 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Tue, 14 Aug 2018 00:16:08 +0200 Subject: [PATCH] Close the audio driver after unloading the game to avoid blocking threads that are pushing audio --- core_impl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core_impl.c b/core_impl.c index f1516fab7c..e0fc8633c8 100644 --- a/core_impl.c +++ b/core_impl.c @@ -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; }