Merge pull request #32 from terryso/master

Fixed AudioPlayer not calling the didEncounterError: method when an error occured
This commit is contained in:
Thong Nguyen 2013-08-04 16:03:26 -07:00
commit c84db3bcab
1 changed files with 5 additions and 0 deletions

View File

@ -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