Function

AudioConverterConvertComplexBuffer

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

Declaration

OSStatus AudioConverterConvertComplexBuffer(AudioConverterRef inAudioConverter, UInt32 inNumberPCMFrames, const AudioBufferList *inInputData, AudioBufferList *outOutputData);

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.

See Also

Performing Conversions

AudioConverterConvertBuffer

Converts audio data from one linear PCM format to another.

AudioConverterFillComplexBuffer

Converts audio data supplied by a callback function, supporting non-interleaved and packetized formats.