Our new developer documentation is now available. Please check it out!
OdinMedia.sendAudioData
On this page
public sendAudioData(data: Float32Array): void
Sends audio data to the room. The data must be in the format specified when creating the media as a 32-bit float array. Samples need to be between -1 and 1. Audio data needs to be sent in regular intervals, otherwise the audio will be sound interrupted. See the example for more details.
Parameters
Name | Type | Description |
---|---|---|
data | Float32Array | A 32-bit float array containing the audio data. |
Returns
Type | Description |
---|---|
void |