Creates a new recording audio queue object.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The compressed or uncompressed audio data format to record to. When recording to linear PCM, only interleaved formats are supported.
A callback function to use with the recording audio queue. The audio queue calls this function when the audio queue has finished filling a buffer. See
Queue Input Callback
A custom data structure for use with the callback function.
The event loop on which the callback function pointed to by the
inparameter is to be called. If you specify
NULL, the callback is called on one of the audio queue’s internal threads.
The run loop mode in which to invoke the callback function specified in the
inparameter. Typically, you pass
CFRun Loop Common Modes
NULL, which is equivalent. You can choose to create your own thread with your own run loops. For more information on run loops, see Run Loops and CFRunLoop.
Reserved for future use. Must be
On output, the newly created recording audio queue.
A result code. See Result Codes.