Instance Method

convert(to:from:)

Performs a simple conversion that doesn't involve codecs or sample rate conversion.

Declaration

func convert(to outputBuffer: AVAudioPCMBuffer, from inputBuffer: AVAudioPCMBuffer) throws

Discussion

The output buffer's frameCapacity value should be at least at large as the frameLength value of the inputBuffer.