Function AudioQueueDeviceGetCurrentTime

Source
pub unsafe extern "C-unwind" fn AudioQueueDeviceGetCurrentTime(
    in_aq: AudioQueueRef,
    out_time_stamp: NonNull<AudioTimeStamp>,
) -> i32
Available on crate features AudioQueue and objc2-core-audio-types only.
Expand description

Obtains the current time of the audio device associated with an audio queue.

If the audio device associated with the audio queue is not running, the only valid field in the audio timestamp structure is mHostTime. This result differentiates the action of this function from that of the AudioDeviceGetCurrentTime function, (declared in AudioHardware.h) which returns an error if the audio device is not running.

Parameter inAQ: The audio queue whose audio device is to be queried.

Parameter outTimeStamp: A pointer to a structure that, on return, contains the current time of the audio device associated with the audio queue.

Returns: An OSStatus result code.