Function

AudioQueueDeviceTranslateTime

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

Declaration

OSStatus AudioQueueDeviceTranslateTime(AudioQueueRef inAQ, const AudioTimeStamp *inTime, AudioTimeStamp *outTime);

Parameters

inAQ

The audio queue associated with the device whose times are being translated.

inDeviceTime

The time to be translated.

outDeviceTime

On output, the translated time.

Return Value

A result code. See Result Codes.

Discussion

The device must be running for this function to provide a result. For an explanation of the various time base representations for an audio hardware device, see AudioTimeStamp in Core Audio Data Types.

See Also

Handling Timing

AudioQueueCreateTimeline

Creates a timeline object for an audio queue.

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.

AudioQueueGetCurrentTime

Gets the current audio queue time.