Contents

makeBatch()

Creates a batch object to handle generating multiple sample buffers.

Declaration

func makeBatch() -> AVSampleBufferGeneratorBatch

Return Value

An object to batch generate sample buffers.

Discussion

Generating sample buffers in batches optimizes performance by allowing the system to asynchronously load sample data and optimize I/O when possible.

See Also

Creating a sample buffer