Contents

copyNextSampleBuffer()

Copies the next sample buffer from the output.

Declaration

func copyNextSampleBuffer() -> CMSampleBuffer?

Return Value

The output sample buffer, or nil if you’ve read all samples or an error occurs.

Discussion

This method returns nil when you’ve read all available sample buffers, or if there’s an error. Check the value of the asset reader’s status property to determine the reason.

See Also

Copying sample buffers