AudioDeviceTranslateTime(_:_:_:)
Declaration
func AudioDeviceTranslateTime(_ inDevice: AudioObjectID, _ inTime: UnsafePointer<AudioTimeStamp>, _ outTime: UnsafeMutablePointer<AudioTimeStamp>) -> OSStatusParameters
- inDevice:
The AudioDevice whose time base governs the translation.
- inTime:
An AudioTimeStamp containing the time to be translated.
- outTime:
An AudioTimeStamp into which the translated time is put. On entry, the mFlags field specifies which representations to translate the input time into. Because not every device supports all time representations, on exit, the mFlags field will indicate which translations were actually done.
Return Value
An OSStatus indicating success or failure. kAudioHardwareNotRunningError will be returned if the AudioDevice isn’t running.
Discussion
Translates the time in the AudioDevice’s time base from one representation to another. Note that the device has to be running
See Also
Functions
AudioConvertHostTimeToNanos(_:)AudioConvertNanosToHostTime(_:)AudioDeviceCreateIOProcID(_:_:_:_:)AudioDeviceCreateIOProcIDWithBlock(_:_:_:_:)AudioDeviceDestroyIOProcID(_:_:)AudioDeviceGetCurrentTime(_:_:)AudioDeviceGetNearestStartTime(_:_:_:)AudioDeviceStart(_:_:)AudioDeviceStartAtTime(_:_:_:_:)AudioDeviceStop(_:_:)AudioGetCurrentHostTime()AudioGetHostClockFrequency()AudioGetHostClockMinimumTimeDelta()AudioHardwareCreateAggregateDevice(_:_:)AudioHardwareDestroyAggregateDevice(_:)