Constructor
new TRTCAudioFrame(audioFormat, data, length, sampleRate, channel, timestamp, extraData, extraDataLength)
Parameters:
Name | Type | Description |
---|---|---|
audioFormat |
TRTCAudioFrameFormat |
required
音频帧的格式 |
data |
ArrayBuffer |
required
音频数据 |
length |
Number |
required
音频数据的长度 |
sampleRate |
Number |
required
采样率 |
channel |
Number |
required
声道数 |
timestamp |
Number |
required
时间戳,单位ms |
extraData |
ArrayBuffer | null |
required
音频额外数据,远端用户通过 |
extraDataLength |
Number |
required
音频消息数据的长度 |