Merge pull request #32 from terryso/master
Fixed AudioPlayer not calling the didEncounterError: method when an error occured
This commit is contained in:
commit
c84db3bcab
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue