diff --git a/src/audio/coreaudio/SDL_coreaudio.m b/src/audio/coreaudio/SDL_coreaudio.m index 44a11b1a0..029dd0ea7 100644 --- a/src/audio/coreaudio/SDL_coreaudio.m +++ b/src/audio/coreaudio/SDL_coreaudio.m @@ -690,6 +690,8 @@ static void COREAUDIO_CloseDevice(_THIS) /* dispose of the audio queue before waiting on the thread, or it might stall for a long time! */ if (this->hidden->audioQueue) { + AudioQueueFlush(this->hidden->audioQueue); + AudioQueueStop(this->hidden->audioQueue, 0); AudioQueueDispose(this->hidden->audioQueue, 0); }