Fixed AudioPlayer incorrectly setting the internal state to Stopping when playing two incompatible items one after another.
This commit is contained in:
parent
86a880415e
commit
25571f9830
|
|
@ -1410,7 +1410,11 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
|
|||
|
||||
if (currentlyReadingEntry == nil)
|
||||
{
|
||||
self.internalState = AudioPlayerInternalStateStopping;
|
||||
if (upcomingQueue.count == 0)
|
||||
{
|
||||
stopReason = AudioPlayerStopReasonNoStop;
|
||||
self.internalState = AudioPlayerInternalStateStopping;
|
||||
}
|
||||
}
|
||||
|
||||
if (nextIsDifferent && entry)
|
||||
|
|
|
|||
Loading…
Reference in New Issue