AudioQueue Callback Not Being Called
AudioQueue Callback Not Being Called
- Subject: AudioQueue Callback Not Being Called
- From: "Hamed Hashemi" <email@hidden>
- Date: Fri, 18 Jul 2008 13:33:50 -0400
Hi,
I'm trying to do some streaming and I've ran into an issue where I
can't figure out why the AudioQueue won't call my callback after I
start it. I've checked all my return values from AudioQueueNewOutput,
AudioQueueAllocateBuffer, AudioQueueEnqueueBuffer (for the initial
priming) and AudioQueueStart and they all return 0. I've also tried
calling AudioQueuePrime before starting and I get zero back for the
number of buffers that were successfully primed.
I'm pretty sure it is not an issue of my stream, because I've also
tried just reading an mp3 file into memory and running that thru the
same code. I am using AudioFileStreamParseBytes to get the bytes that
fill up the buffers..
A few questions..
- Is there any example code for using the AudioFileStream API to make
sure I'm connecting that to the AudioQueue correctly?
- Is it required that I fill up the buffers to the max capacity?
- Is there any other thing I can do to check the status for the
AudioQueue to see why it hasn't "started"?
- Has anyone else experienced issues where the callback is not called?
I know in the sample apps, if I comment out the code that initially
fills up the buffer, the callback does not get called. So I could be
doing something wrong there, but not sure because I've also tried
saving these bytes to a file, and I can play them back in Quicktime
(and even in the sample AudioTest app) perfectly fine.
Any help for those who know would be appreciated!
Thanks,
Hamed
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden