Instance Property


A Boolean value that indicates whether to vend data in buffers before copying.


var alwaysCopiesSampleData: Bool { get set }


When the value of this property is true, the output always vends a buffer with copied data—you can freely modify data in such buffers.

When the value of this property is false, you can't copy the vended buffers—such buffers may still be referenced by other entities. The result of modifying a buffer whose data hasn't been copied is undefined.

Requesting buffers whose data hasn’t been copied when possible can lead to performance improvements.

The default value of this property is true

See Also

Copying a Buffer

func copyNextSampleBuffer() -> CMSampleBuffer?

Copies the next sample buffer for the output.