Skip to content

Commit

Permalink
iOS: Only mark interrupted audio devices as non-interrupted if AudioQ…
Browse files Browse the repository at this point in the history
…ueueStart is successful.
  • Loading branch information
slime73 committed May 3, 2017
1 parent ce2998b commit 75fb07a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/coreaudio/SDL_coreaudio.m
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 75fb07a

Please sign in to comment.