Called by the system when a recording audio queue has finished filling an audio queue buffer.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The custom data you’ve specified in the
inparameter of the
Audiofunction. Typically, this includes format and state information for the audio queue.
Queue New Input
The recording audio queue that invoked the callback.
An audio queue buffer, newly filled by the recording audio queue, containing the new audio data your callback needs to write.
The sample time for the start of the audio queue buffer. This parameter is not used in basic recording.
The number of packets of audio data sent to the callback in the
inparameter. When recording in a constant bit rate (CBR) format, the audio queue sets this parameter to
For compressed formats that require packet descriptions, the set of packet descriptions produced by the encoder for audio data in the
inparameter. When recording in a CBR format, the audio queue sets this parameter to
If you name your callback function
My, you would declare it like this:
You specify a recording audio queue callback when calling the
Audio function. The callback is invoked each time its recording audio queue has filled an audio queue buffer with fresh audio data. Typically, your callback writes the data to a file or other buffer, and then reenqueues the audio queue buffer to receive more data.