Contents

AudioQueueDispose(_:_:)

Disposes of an audio queue.

Declaration

func AudioQueueDispose(_ inAQ: AudioQueueRef, _ inImmediate: Bool) -> OSStatus

Parameters

  • inAQ:

    The audio queue you want to dispose of.

  • inImmediate:

    If you pass true, the audio queue is disposed of immediately (that is, synchronously). If you pass false, disposal does not take place until all enqueued buffers are processed (that is, asynchronously).

Return Value

A result code. See Result Codes.

Discussion

Disposing of an audio queue also disposes of its resources, including its buffers. After you call this function, you can no longer interact with the audio queue. In addition, the audio queue no longer invokes any callbacks.

See Also

Related Documentation

Creating and Disposing of Audio Queues