AudioQueueDeviceGetCurrentTime(_:_:)
Gets the current time of the audio hardware device associated with an audio queue.
Declaration
func AudioQueueDeviceGetCurrentTime(_ inAQ: AudioQueueRef, _ outTimeStamp: UnsafeMutablePointer<AudioTimeStamp>) -> OSStatusParameters
- inAQ:
The audio queue whose associated audio device is to be queried.
- outTimeStamp:
On output, the current time of the audio hardware device associated with the audio queue. If the device is not running, the only valid field in the audio timestamp structure is
mHostTime.
Return Value
A result code. See Result Codes.
Discussion
This function returns a value whether or not the audio hardware device associated with the audio queue is running. The similar AudioDeviceGetCurrentTime function, declared in the AudioHardware.h header file, returns an error in this case.