Don't stop audio player immediately when finished playing---wait until next runloop
This commit is contained in:
parent
dd7165b3d2
commit
ae63d04b87
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue