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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software