Instance Property


Access the buffer's int16_t audio samples.


var int16ChannelData: UnsafePointer<UnsafeMutablePointer<Int16>>? { get }


The int16ChannelData property returns the buffer's audio samples if the buffer's format has 2-byte integer samples, or nil if it is another format.

See floatChannelData for more information.

See Also

Accessing PCM Buffer Data

var floatChannelData: UnsafePointer<UnsafeMutablePointer<Float>>?

The buffer's audio samples as floating point values.

var frameCapacity: AVAudioFrameCount

The buffer's capacity, in audio sample frames.

var stride: Int

The buffer's number of interleaved channels.