AudioData
class AudioData : NSObjectWrapper class for input audio samples backed by a ring buffer.
-
Audio format specifying channel count and sample rate.
Declaration
Swift
var format: AudioDataFormat { get } -
Capacity of the AudioData buffer in number of elements.
Declaration
Swift
var bufferLength: UInt { get } -
Initializes a new
AudioDatawith the given format and sample count.Declaration
Swift
init(format: AudioDataFormat, sampleCount: UInt) -
Loads the internal buffer from an
AudioRecordinstance.Declaration
Swift
func load(audioRecord: AudioRecord) throws