mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
iOS: Only mark interrupted audio devices as non-interrupted if AudioQueueStart is successful.
This commit is contained in:
parent
ce2998b8b9
commit
75fb07a6d2
@ -285,9 +285,9 @@ static void interruption_begin(_THIS)
|
|||||||
static void interruption_end(_THIS)
|
static void interruption_end(_THIS)
|
||||||
{
|
{
|
||||||
if (this != NULL && this->hidden != NULL && this->hidden->audioQueue != NULL
|
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;
|
this->hidden->interrupted = SDL_FALSE;
|
||||||
AudioQueueStart(this->hidden->audioQueue, NULL);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user