Function

AudioConverterConvertComplexBuffer(_:_:_:_:)

Converts audio data from one linear PCM format to another, where both use the same sample rate.

Declaration

func AudioConverterConvertComplexBuffer(_ inAudioConverter: AudioConverterRef, _ inNumberPCMFrames: UInt32, _ inInputData: UnsafePointer<AudioBufferList>, _ outOutputData: UnsafeMutablePointer<AudioBufferList>) -> OSStatus

Parameters

inAudioConverter

The audio converter to use for the format conversion.

inNumberPCMFrames

The number of linear PCM frames to convert.

inInputData

The source audio buffer list.

outOutputData

The destination audio buffer list.

Return Value

A result code.

Discussion

This function is appropriate for linear PCM-to-linear PCM audio data format conversion where there is no sample rate conversion.