Compare commits

..

4 Commits

Author SHA1 Message Date
Thong Nguyen aeb1ee1b7c Merge pull request #34 from ablinov/master
Removed test code
2013-08-30 10:40:10 -07:00
Alexey Blinov ec8b82b28f Removed test code 2013-08-30 18:34:57 +01:00
Thong Nguyen c84db3bcab Merge pull request #32 from terryso/master
Fixed AudioPlayer not calling the didEncounterError: method when an error occured
2013-08-04 16:03:26 -07:00
terryso cf14a035f6 Fixed AudioPlayer not calling the didEncounterError: method when an error occured 2013-08-01 10:12:19 +08:00
@@ -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