An audio file that can be opened for reading or writing.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- AVFoundation
Declaration
class AVAudioFile : NSObject
Overview
Regardless of the file’s actual format, you read and write it using AVAudio
objects that contain samples using AVAudio
. This format is referred to as the file’s processing format. Conversions are performed to and from the file’s actual format.
Reads and writes are always sequential, but random access is possible by setting the frame
property.