Asks an audio queue object to allocate an audio queue buffer.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The audio queue you want to allocate a buffer.
The desired capacity of the new buffer, in bytes. Appropriate capacity depends on the processing you will perform on the data as well as on the audio data format.
On output, points to the newly allocated audio queue buffer.
A result code. See Result Codes.
Once allocated, the pointer to the audio queue buffer and the buffer’s capacity cannot be changed. The buffer’s size field,
m, which indicates the amount of valid data, is initially set to 0.