Contents

AudioQueueFreeBuffer(_:_:)

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

Declaration

func AudioQueueFreeBuffer(_ inAQ: AudioQueueRef, _ inBuffer: AudioQueueBufferRef) -> OSStatus

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

Related Documentation

Handling Audio Queue Buffers