AudioSamples

The AudioSamples model contains information about audio captured by the local participant's microphone.

The model is supported in SDK 3.8 and later.

Accessors

sampleRate

sampleRate: Int32

The sample rate of audio samples, either 32kHz, 44.1kHz, or 48kHz.

format

format: AudioFormat

The audio format of an audio stream.

bufferList

bufferList: UnsafeMutableAudioBufferListPointer?

The array of audio buffers. In order to access the buffers, use the UnsafeMutableAudioBufferListPointer class, for example:

let abl = UnsafeMutableAudioBufferListPointer(bufferList)
for buffer in abl {
 let newData = Data(bytes: buffer.mData!, count: Int(buffer.mDataByteSize))
}