Skip to content
Permalink
Browse files

iOS: Only mark interrupted audio devices as non-interrupted if AudioQ…

…ueueStart is successful.
  • Loading branch information
slime73 committed May 3, 2017
1 parent ce2998b commit 75fb07a6d282ac0b3a9b51dd8cb48a6ef72b8b29
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/audio/coreaudio/SDL_coreaudio.m
@@ -285,9 +285,9 @@ static void interruption_begin(_THIS)
static void interruption_end(_THIS)
{
if (this != NULL && this->hidden != NULL && this->hidden->audioQueue != NULL
&& this->hidden->interrupted) {
&& this->hidden->interrupted
&& AudioQueueStart(this->hidden->audioQueue, NULL) == AVAudioSessionErrorCodeNone) {
this->hidden->interrupted = SDL_FALSE;
AudioQueueStart(this->hidden->audioQueue, NULL);
}
}

0 comments on commit 75fb07a

Please sign in to comment.