Merge pull request #17 from ablinov/master
Stopped AudioPlayer from setting wrong state when resetting audio queue
This commit is contained in:
commit
0db37bf406
|
|
@ -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