Constructor
new TRTCAudioFrame(audioFormat, data, length, sampleRate, channel, timestamp, extraData, extraDataLength)
Parameters:
Name | Type | Description |
---|---|---|
audioFormat |
TRTCAudioFrameFormat |
required
audio frame format |
data |
ArrayBuffer |
required
audio data |
length |
Number |
required
audio data length |
sampleRate |
Number |
required
sample rate |
channel |
Number |
required
number of sound channels |
timestamp |
Number |
required
timestamp in ms |
extraData |
ArrayBuffer | null |
required
extra data in audio frame, message sent by remote users through |
extraDataLength |
Number |
required
extra data length |