API reference
API reference
Select your platform
No SDKs available
No versions available

AudioBufferEvents Class

A collection of events related to audio being processed by the AudioBuffer

Fields

Callbacks as audio state changes
Fired when a sample is ready to be read
Parameters
marker
The marker in the AudioBuffer's ringbuffer where the sample starts
levelMax
The maximum volume (0-1) seen in this sample
Fired when a sample is received from an audio input source
Parameters
samples
The raw float sample buffer
sampleCount
The number of samples in the buffer
maxLevel
The max volume in this sample
Fired when the volume level of an input source changes
Parameters
level
The level of the volume on that input (0-1)
Fired when data is ready to be sent to various voice services
Parameters
buffer
The byte buffer about to be sent
offset
The offset into the buffer that should be read
length
The length of the data to be sent
Fired when byte data is sent to various voice services
Parameters
buffer
The byte buffer about to be sent
offset
The offset into the buffer that should be read
length
The length of the data to be sent

Member Functions

Fired when a sample is ready to be read
Parameters
marker
The marker in the AudioBuffer's ringbuffer where the sample starts
levelMax
The maximum volume (0-1) seen in this sample
Did you find this page helpful?
Thumbs up icon
Thumbs down icon