The call to status = AudioQueueEnqueueBuffer(
queue,
buffer,
inNumPacketDescs,
inPacketDescs );
where
AudioQueueRef queue;
AudioQueueBufferRef buffer;
UInt32 inNumPacketDescs = 0;
const AudioStreamPacketDescription *inPacketDescs = NULL;
resulted in status = -6686,
but the preceding call
status = AudioQueueAllocateBuffer(
queue,
gCallbackData.bufferByteSize,
&buffer
);
Resulted in status = 0 (noErr)
So it looks like the queue and buffer args of AudioQueueEnqueueBuffer are OK.
What's wrong?