AudioQueueNewOutput(_:_:_:_:_:_:_:)
Creates a new playback audio queue object.
Declaration
func AudioQueueNewOutput(_ inFormat: UnsafePointer<AudioStreamBasicDescription>, _ inCallbackProc: AudioQueueOutputCallback, _ inUserData: UnsafeMutableRawPointer?, _ inCallbackRunLoop: CFRunLoop?, _ inCallbackRunLoopMode: CFString?, _ inFlags: UInt32, _ outAQ: UnsafeMutablePointer<AudioQueueRef?>) -> OSStatusParameters
- inFormat:
The data format of the audio to play. For linear PCM, only interleaved formats are supported. Compressed formats are also supported.
- inCallbackProc:
A callback function to use with the playback audio queue. The audio queue invokes the callback when the audio queue has finished acquiring a buffer. See Audioqueueoutputcallback.
- inUserData:
A custom data structure for use with the callback function.
- inCallbackRunLoop:
The event loop on which the callback function pointed to by the
inCallbackProcparameter is to be called. If you specifyNULL, the callback is invoked on one of the audio queue’s internal threads. - inCallbackRunLoopMode:
The run loop mode in which to invoke the callback function specified in the
inCallbackProcparameter. Typically, you passkCFRunLoopCommonModesor useNULL, which is equivalent. You can choose to create your own thread with your own run loops. For more information on run loops, see Run Loops and Cfrunloop. - inFlags:
Reserved for future use. Must be
0. - outAQ:
On output, the newly created playback audio queue object.
Return Value
A result code. See Result Codes.