Hey all,
I've been up all night trying to figure this one out. My code is basically the same as Apple's example here. However, the device plays only the FIRST buffer placed in the queue (I hear the contents of the first buffer when the app starts). After that, no sound will come from the device at all. The playback is still running though as AQS continues to fire my AudioQueueOutputCallback
function. Additionally, every call to AQS returns 0 so nothing is failing.
Now, I can get subsequent buffers to play as long as I call AudioQueueEnqueueBuffer
from WITHIN my callback function. This won't work as I can only fill and enqueue the buffers from within my AudioFileStream_PacketsProc
callback as the data cines from the socket and into AudioFileStreamParseBytes
.
Anyone else have this problem? Seems like a bug in AQS to me...
Thanks, Andrew