AVAudioFile
An object that represents an audio file that the system can open for reading or writing.
Declaration
class AVAudioFileOverview
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
init(forReading:)init(forReading:commonFormat:interleaved:)init(forWriting:settings:)init(forWriting:settings:commonFormat:interleaved:)
Reading and Writing the Audio Buffer
Getting Audio File Properties
urlfileFormatprocessingFormatlengthAVAudioFramePositionframePositionAVAudioFrameCountAVAudioFileTypeKeyisOpen