mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 12:25:37 +00: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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue