Delegate AudioReadEventHandler
Delegate to be called when new audio data is received.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
public delegate void AudioReadEventHandler(float[] data, int channels, int sampleRate)
Parameters
Type | Name | Description |
---|---|---|
float[] | data | Float array containing audio data samples. |
int | channels | Number of audio channels. |
int | sampleRate | Sample rate of the audio data |
Remarks
AudioReadEventHandler
is a delegate to be called when new audio data is received.
Examples
audioStreamTrack.onReceived += (data, channels, sampleRate) =>
{
}