OSStatus err = AudioQueueNewOutput(&audioDescription, AudioPlayerAQOutputCallback, ( void* )self, nil, nil, 0, &audioQueue);
if( err != noErr )
NSLog(@"Couldn't open AudioFile.");
err = AudioQueueAddPropertyListener(audioQueue, kAudioQueueProperty_IsRunning, isRunningProc, self);
if( err != noErr )
NSLog(@"Couldn't register for playback state changes.");
此回调函数仅在 AudioQueueStart(audioQueue, NULL) 之后调用一次;
我叫什么 AudioQueuePause(audioQueue);
或音频到达终点。
static void isRunningProc(void * inUserData,
AudioQueueRef inAQ,
AudioQueuePropertyID inID)
我错过了什么?