iOS: Only mark interrupted audio devices as non-interrupted if AudioQueueStart is successful.

This commit is contained in:
Alex Szpakowski 2017-05-03 18:05:29 -03:00
parent ce2998b8b9
commit 75fb07a6d2
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}