Instance Method

convert(to:error:withInputFrom:)

Performs any supported conversion.

Declaration

func convert(to outputBuffer: AVAudioBuffer, error outError: NSErrorPointer, withInputFrom inputBlock: @escaping AVAudioConverterInputBlock) -> AVAudioConverterOutputStatus

Discussion

On return, the buffer's length indicates the number of sample frames successfully converted.

See Also

Converting Audio Formats

func convert(to: AVAudioPCMBuffer, from: AVAudioPCMBuffer)

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