Audio Converter Services

Overview

Audio converter objects convert between various linear PCM audio formats. They can also convert between linear PCM and compressed formats. Supported transformations include the following:

  • PCM bit depth

  • PCM sample rate

  • PCM floating point to and from PCM integer

  • PCM interleaved to and from PCM deinterleaved

  • PCM to and from compressed formats

A single audio converter may perform more than one of the listed transformations.

Topics

Managing Audio Converter Objects

AudioConverterDispose

Disposes of an audio converter object.

AudioConverterNew

Creates a new audio converter object based on specified audio formats.

AudioConverterNewSpecific

Creates a new audio converter object using a specified codec.

AudioConverterReset

Resets an audio converter object, clearing and flushing its buffers.

Configuring Audio Converter Properties

AudioConverterGetProperty

Gets an audio converter property value.

AudioConverterGetPropertyInfo

Gets information about an audio converter property.

AudioConverterSetProperty

Sets the value of an audio converter object property.

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.

AudioConverterConvertComplexBuffer

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

Deprecated Functions

Data Types

AudioConverterPrimeInfo

Specifies priming information for an audio converter, used as a value for the kAudioConverterPrimeInfo property.

AudioConverterRef

A reference to an audio converter object.

AudioConverterPropertyID

An audio converter property identifier.

Constants

Sample Rate Conversion Quality Identifiers

Specifiers for sample rate conversion quality, used for the kAudioConverterSampleRateConverterQuality property.

Sample Rate Conversion Complexity Identifiers

Specifiers for the sample rate conversion algorithm, used for the kAudioConverterSampleRateConverterComplexity property.

Result Codes

This table lists result codes defined for Audio Converter Services.