Function

AudioQueueFreeBuffer

Asks an audio queue to dispose of an audio queue buffer.

Declaration

OSStatus AudioQueueFreeBuffer(AudioQueueRef inAQ, AudioQueueBufferRef inBuffer);

Parameters

inAQ

The audio queue that owns the audio queue buffer you want to dispose of.

inBuffer

The buffer to dispose of.

Return Value

A result code. See Result Codes.

Discussion

Disposing of an audio queue also disposes of its buffers. Call this function only if you want to dispose of a particular buffer while continuing to use an audio queue. You can dispose of a buffer only when the audio queue that owns it is stopped (that is, not processing audio data).

See Also

Handling Audio Queue Buffers

AudioQueueAllocateBuffer

Asks an audio queue object to allocate an audio queue buffer.

AudioQueueAllocateBufferWithPacketDescriptions

Asks an audio queue object to allocate an audio queue buffer with space for packet descriptions.

AudioQueueEnqueueBuffer

Adds a buffer to the buffer queue of a recording or playback audio queue.

AudioQueueEnqueueBufferWithParameters

Adds a buffer to the buffer queue of a playback audio queue object, specifying start time and other settings.