Function

AudioQueueStart(_:_:)

Begins playing or recording audio.

Declaration

func AudioQueueStart(_ inAQ: AudioQueueRef, _ inStartTime: UnsafePointer<AudioTimeStamp>?) -> OSStatus

Parameters

inAQ

The audio queue to start.

inDeviceStartTime

The time at which the audio queue should start.

To specify a start time relative to the timeline of the associated audio device, use the mSampleTime field of the AudioTimeStamp structure. Use NULL to indicate that the audio queue should start as soon as possible.

Return Value

A result code. See Result Codes.

Discussion

If the associated audio device is not already running, this function starts it.

See Also

Controlling Audio Queues