fix:调整对讲音频发送速率
This commit is contained in:
parent
8a5e997262
commit
3e15966c64
@ -815,7 +815,7 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
static const int chunkSize = 320; // 每次发送320字节(10ms G.711)
|
static const int chunkSize = 320; // 每次发送320字节(10ms G.711)
|
||||||
static const int intervalMs = 40; // 每40ms发送一次(4个chunk)
|
static const int intervalMs = 35; // 每40ms发送一次(4个chunk)
|
||||||
void _sendAudioChunk(Timer timer) async {
|
void _sendAudioChunk(Timer timer) async {
|
||||||
if (_bufferedAudioFrames.length < chunkSize) {
|
if (_bufferedAudioFrames.length < chunkSize) {
|
||||||
// 数据不足,等待下一周期
|
// 数据不足,等待下一周期
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user