Instance Property

format

The format of the audio in the buffer.

Declaration

var format: AVAudioFormat { get }

See Also

Managing Information About a Sound

var numberOfChannels: Int

The number of audio channels in the sound associated with the audio player.

var duration: TimeInterval

The total duration, in seconds, of the sound associated with the audio player.

var currentTime: TimeInterval

The playback point, in seconds, within the timeline of the sound associated with the audio player.

var deviceCurrentTime: TimeInterval

The time value, in seconds, of the audio output device.

var url: URL?

The URL for the sound associated with the audio player.

var data: Data?

The data object containing the sound associated with the audio player.

var currentDevice: String?

The UID of the current audio player.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software