Audio Settings and Formats

Define audio data with these constants and classes.

Topics

Formats

class AVAudioFormat

A class that represents a buffer of audio data with a format.

class AVAudioChannelLayout

The roles of a set of audio channels.

let AVChannelLayoutKey: String

The corresponding value is an NSData object containing an AudioChannelLayout structure.

Linear PCM Format Settings

Apply audio settings to linear PCM audio formats.

General Audio Format Settings

Audio settings that apply to all audio formats handled by the AVAudioPlayer and AVAudioRecorder classes.

Settings

Sample Rate Conversion Settings

Sample rate converter audio quality settings.

enum AVAudioQuality

Keys that specify sample rate conversion quality.

Encoder Settings

Audio encoder settings for the AVAudioRecorder class.

Time Pitch Algorithm Settings

The constants define the values for the time pitch algorithms.

Constants

AVEncoderBitRateStrategyKey Values

These constants are the supported values for the AVEncoderBitRateStrategyKey encoder setting.

AVSampleRateConverterAlgorithmKey Values

These constants are the supported values for the AVEncoderBitRateStrategyKey encoder setting.

See Also

First Steps

class AVAudioFile

An audio file that can be opened for reading or writing.

class AVAudioBuffer

A buffer of audio data and its format.

class AVAudioTime

A class used by the audio engine to represent time.