Extended Audio File Services


Extended Audio File Services provides simplified audio file access, combining features of Audio File Services and Audio Converter Services. It provides a unified interface for reading and writing compressed as well as linear PCM audio files.


Managing Extended Audio File Objects

func ExtAudioFileDispose(ExtAudioFileRef)

Disposes of an extended audio file object and closes the associated file.

func ExtAudioFileOpenURL(CFURL, UnsafeMutablePointer<ExtAudioFileRef?>)

Opens an existing audio file for reading, and associates it with a new extended audio file object.

Reading and Writing Audio Data

func ExtAudioFileSeek(ExtAudioFileRef, Int64)

Seeks to a specified frame in a file.

func ExtAudioFileWrite(ExtAudioFileRef, UInt32, UnsafePointer<AudioBufferList>)

Performs a synchronous, sequential write operation on an audio file.

func ExtAudioFileWriteAsync(ExtAudioFileRef, UInt32, UnsafePointer<AudioBufferList>?)

Perform an asynchronous, sequential write operation on an audio file.

Data Types

typealias ExtAudioFileRef

An opaque structure representing an extended audio file object.

typealias ExtAudioFilePropertyID

An audio file object property identifier.

Result Codes