Contents

CMBufferQueueGetDuration(_:)

Gets the duration of a buffer queue.

Declaration

func CMBufferQueueGetDuration(_ queue: CMBufferQueue) -> CMTime

Parameters

  • queue:

    CMBufferQueue being 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