AudioQueueGetCurrentTime(_:_:_:_:)
Gets the current audio queue time.
Declaration
func AudioQueueGetCurrentTime(_ inAQ: AudioQueueRef, _ inTimeline: AudioQueueTimelineRef?, _ outTimeStamp: UnsafeMutablePointer<AudioTimeStamp>?, _ outTimelineDiscontinuity: UnsafeMutablePointer<DarwinBoolean>?) -> OSStatusParameters
- inAQ:
The audio queue whose current time you want to get.
- inTimeline:
The audio queue timeline object to which timeline discontinuities are reported. Use
NULLif the audio queue does not have an associated timeline object. - outTimeStamp:
On output, the current audio queue time. The
mSampleTimefield represents audio queue time in terms of the audio queue sample rate, relative to when the queue started or will start. - outTimelineDiscontinuity:
On output,
trueif there has been a timeline discontinuity, orfalseif there has been no discontinuity. If the audio queue does not have an associated timeline object, this parameter is alwaysNULL.A timeline discontinuity may occur, for example, if the sample rate is changed for the audio hardware device associated with an audio queue.
Return Value
A result code. See Result Codes.