Don't stop audio player immediately when finished playing---wait until next runloop

This commit is contained in:
Thong Nguyen 2014-01-31 23:02:19 +00:00
parent dd7165b3d2
commit ae63d04b87
1 changed files with 0 additions and 8 deletions

View File

@ -933,14 +933,6 @@ static void AudioFileStreamPacketsProc(void* clientData, UInt32 numberBytes, UIn
[self.delegate audioPlayer:self didFinishPlayingQueueItemId:queueItemId withReason:stopReason andProgress:progress andDuration:duration];
}];
}
if (currentlyReadingEntry == nil)
{
if (upcomingQueue.count == 0)
{
[self stopAudioUnitWithReason:STKAudioPlayerStopReasonEof];
}
}
}
[self wakeupPlaybackThread];