Contents

copyPCMData(fromRange:into:)

Copies PCM audio data from the sample buffer into a pre-allocated AudioBufferList.

Declaration

func copyPCMData(fromRange range: Range<Int>, into bufferList: UnsafeMutablePointer<AudioBufferList>) throws

Parameters

  • range:

    Range of frames to copy.

  • bufferList:

    Pre-allocated AudioBufferList.

Discussion

The AudioBufferList must contain the same number of channels and its data buffers must be sized to hold the specified number of frames.