Contents

CMBufferGetTimeCallback

Callback that returns a CMTime from a CMBuffer.

Declaration

typealias CMBufferGetTimeCallback = (CMBuffer, UnsafeMutableRawPointer?) -> CMTime

Discussion

There are three callbacks of this type that can be provided to Creating Buffer Queues: getDuration (required), getDecodeTimeStamp (optional), and getPresentationTimeStamp (optional).

Callback Parameters

buf

The buffer being interrogated.

refcon

The contextual data from the client (which may be NULL).

See Also

Properties