CMBufferQueueGetDuration(_:)
Gets the duration of a buffer queue.
Declaration
func CMBufferQueueGetDuration(_ queue: CMBufferQueue) -> CMTimeParameters
- queue:
CMBufferQueuebeing interrogated.
Return Value
Returns sum of all the individual buffer durations in the CMBufferQueue.
Discussion
The duration of the CMBufferQueue is the sum of all the individual buffer durations, as reported by the getDuration callback (provided to Creating Buffer Queues). If there are no buffers in the queue, kCMTimeZero will be returned.
See Also
Inspecting Duration and Timing
CMBufferQueueGetMinDecodeTimeStamp(_:)CMBufferQueueGetFirstDecodeTimeStamp(_:)CMBufferQueueGetMinPresentationTimeStamp(_:)CMBufferQueueGetFirstPresentationTimeStamp(_:)CMBufferQueueGetEndPresentationTimeStamp(_:)CMBufferQueueGetMaxPresentationTimeStamp(_:)CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS()CMBufferQueueGetCallbacksForUnsortedSampleBuffers()