Developer Documentation

OdinMedia.sendAudioData

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

NameTypeDescription
dataFloat32ArrayA 32-bit float array containing the audio data.

Returns

TypeDescription
void