AudioDeviceGetCurrentTime(_:_:)
Declaration
func AudioDeviceGetCurrentTime(_ inDevice: AudioObjectID, _ outTime: UnsafeMutablePointer<AudioTimeStamp>) -> OSStatusParameters
- inDevice:
The AudioDevice to from which to get the time.
- outTime:
An AudioTimeStamp into which the current time is put. On entry, the mFlags field specifies which representations to provide. Because not every device supports all time representations, on exit, the mFlags field will indicate what values are actually valid.
Return Value
An OSStatus indicating success or failure. kAudioHardwareNotRunningError will be returned if the AudioDevice isn’t running.
Discussion
Retrieves the current time from an AudioDevice. Note that the device has to be running.
See Also
Functions
AudioConvertHostTimeToNanos(_:)AudioConvertNanosToHostTime(_:)AudioDeviceCreateIOProcID(_:_:_:_:)AudioDeviceCreateIOProcIDWithBlock(_:_:_:_:)AudioDeviceDestroyIOProcID(_:_:)AudioDeviceGetNearestStartTime(_:_:_:)AudioDeviceStart(_:_:)AudioDeviceStartAtTime(_:_:_:_:)AudioDeviceStop(_:_:)AudioDeviceTranslateTime(_:_:_:)AudioGetCurrentHostTime()AudioGetHostClockFrequency()AudioGetHostClockMinimumTimeDelta()AudioHardwareCreateAggregateDevice(_:_:)AudioHardwareDestroyAggregateDevice(_:)