projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53c78ce
)
修改保底机制,防止首保过大
3351/4
3351/head
author
hcj
<1224667075@qq.com>
Tue, 21 Apr 2026 04:36:36 +0000
(12:36 +0800)
committer
hcj
<1224667075@qq.com>
Tue, 21 Apr 2026 04:36:36 +0000
(12:36 +0800)
code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c
b/code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c
index
b556d2b
..
6658fd7
100644
(file)
--- a/
code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c
+++ b/
code/sdk/zhihui/leiniao/imsl_ln/ln_api_websocket.c
@@
-1201,7
+1201,7
@@
static void ai_binary_message_handler(const uint8_t *raw_data, uint32_t timestam
const size_t CHUNK_SIZE = 1024*2; // 1K 分块大小
- if (data_len <= CHUNK_SIZE ||
g_audio_playback_active==false
) {
+ if (data_len <= CHUNK_SIZE ||
(g_audio_playback_active==false && data_len<=1024*5)
) {
// 数据小于等于1K,直接发送
LN_WS_DEBUG("Sending data directly (size: %d bytes)\n", data_len);
AI_SendAudioDataToQueue(raw_data, data_len);