Instance Property

length

The number of sample frames in the file.

Declaration

var length: AVAudioFramePosition { get }

Discussion

This can be computationally expensive to compute for the first time.

See Also

Getting Audio File Properties

var fileFormat: AVAudioFormat

The on-disk format of the file.

var processingFormat: AVAudioFormat

The processing format of the file.

var framePosition: AVAudioFramePosition

The position in the file at which the next read or write operation will occur.

typealias AVAudioFramePosition

A position in an audio file or stream.

typealias AVAudioFrameCount

A number of audio sample frames.

var url: URL

The URL the file is reading or writing.

let AVAudioFileTypeKey: String

A string indicating the audio file type.