Contents

AVAudioFile

An object that represents an audio file that the system can open for reading or writing.

Declaration

class AVAudioFile

Overview

Regardless of the file format, you read and write using AVAudioPCMBuffer objects. These objects contain samples as AVAudioCommonFormat that the framework refers to as the file’s processing format. You convert to and from using the file’s actual format.

Reads and writes are always sequential. Random access is possible by setting the framePosition property.

Topics

Creating an Audio File

Reading and Writing the Audio Buffer

Getting Audio File Properties

Initializers

See Also

Supporting data types