Fixed AudioPlayer incorrectly setting the internal state to Stopping when playing two incompatible items one after another.

This commit is contained in:
Alexey Blinov 2013-04-08 18:14:44 +01:00
parent 86a880415e
commit 25571f9830
1 changed files with 5 additions and 1 deletions

View File

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