Function

AudioQueueCreateTimeline

Creates a timeline object for an audio queue.

Declaration

OSStatus AudioQueueCreateTimeline(AudioQueueRef inAQ, AudioQueueTimelineRef  _Nullable *outTimeline);

Parameters

inAQ

The audio queue to associate with the new timeline object.

outTimeLine

On output, the newly created timeline object.

Return Value

A result code. See Result Codes.

Discussion

Create a timeline object if you want to get timeline discontinuity information from an audio queue using the AudioQueueGetCurrentTime function.

See Also

Handling Timing

AudioQueueDisposeTimeline

Disposes of an audio queue’s timeline object.

AudioQueueDeviceGetCurrentTime

Gets the current time of the audio hardware device associated with an audio queue.

AudioQueueDeviceGetNearestStartTime

Gets the start time, for an audio hardware device, that is closest to a requested start time.

AudioQueueDeviceTranslateTime

Converts the time for an audio queue’s associated audio hardware device from one time base representation to another.

AudioQueueGetCurrentTime

Gets the current audio queue time.