Function AudioQueueProcessingTapGetQueueTime

Source
pub unsafe extern "C-unwind" fn AudioQueueProcessingTapGetQueueTime(
    in_aq_tap: AudioQueueProcessingTapRef,
    out_queue_sample_time: NonNull<f64>,
    out_queue_frame_count: NonNull<u32>,
) -> i32
Available on crate feature AudioQueue only.
Expand description

Used by a processing tap to retrieve the queue’s current time.

This function may only be called from the processing tap’s callback, and only for audio output queues. It must be called after calling AudioQueueProcessingTapGetSourceAudio().

Parameter inAQTap: the processing tap

Parameter outQueueSampleTime: the current sample time of the audio queue. This will appear to be stationary if the queue is paused.

Parameter outQueueFrameCount: the number of sample frames of queue time corresponding to the current chunk of audio being processed by the tap. This will differ from the frame count passed to the tap if the queue’s playback rate is currently other than 1.0, due to the use of time compression/expansion. The frame count can also be 0 if the queue is paused.

Returns: An OSStatus result code.