AudioQueueDeviceTranslateTime(_:_:_:)
Converts the time for an audio queue’s associated audio hardware device from one time base representation to another.
Declaration
func AudioQueueDeviceTranslateTime(_ inAQ: AudioQueueRef, _ inTime: UnsafePointer<AudioTimeStamp>, _ outTime: UnsafeMutablePointer<AudioTimeStamp>) -> OSStatusParameters
- inAQ:
The audio queue associated with the device whose times are being translated.
- inTime:
The time to be translated.
- outTime:
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.