Decodes enqueued buffers in preparation for playback.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The audio queue to be primed.
The number of frames to decode before returning. Pass
0to decode all enqueued buffers.
On output, the number of frames actually decoded and prepared for playback. Pass
NULLon input if you you are not interested in this information.
A result code. See Result Codes.
This function decodes enqueued buffers in preparation for playback. It returns when at least the number of audio sample frames specified in
in are decoded and ready to play, or (if you pass
0 for the
in parameter), when all enqueued buffers are decoded.
To make a buffer of audio data ready to play, use
Audio as follows: