You're passing NULL for the resulting queue, instead you should be passing the address of an AudioQueueRef
, like this:
AudioQueueRef inAQ;
OSStatus err=AudioQueueNewInput(mDataFormat, MyAudioQueueInputCallback, NULL, CFRunLoopGetCurrent(), kCFRunLoopCommonModes, 0, &inAQ);