Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| aeb1ee1b7c | |||
| ec8b82b28f | |||
| c84db3bcab | |||
| cf14a035f6 |
@@ -961,7 +961,7 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
|
||||
}
|
||||
}
|
||||
|
||||
if (signal || YES)
|
||||
if (signal)
|
||||
{
|
||||
pthread_cond_signal(&queueBufferReadyCondition);
|
||||
}
|
||||
@@ -1097,6 +1097,11 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
|
||||
{
|
||||
errorCode = errorCodeIn;
|
||||
self.internalState = AudioPlayerInternalStateError;
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^
|
||||
{
|
||||
[self.delegate audioPlayer:self didEncounterError:errorCode];
|
||||
});
|
||||
}
|
||||
|
||||
-(void) createAudioQueue
|
||||
|
||||
Reference in New Issue
Block a user