develop_sky #1

Merged
liyi merged 62 commits from develop_sky into develop_sky_liyi 2025-09-22 17:48:20 +08:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit e126dd60fc - Show all commits

View File

@ -973,7 +973,7 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
switch (contentType) {
case TalkData_ContentTypeE.G711:
//
if (!state.isOpenVoice.value && state.isRecordingAudio.value) {
if (!state.isOpenVoice.value || state.isRecordingAudio.value) {
return;
}
if (state.audioBuffer.length >= audioBufferSize) {

View File

@ -110,7 +110,9 @@ class TalkViewLogic extends BaseGetXController {
switch (contentType) {
case TalkData_ContentTypeE.G711:
//
if (!state.isOpenVoice.value && state.isRecordingAudio.value) {
if (!state.isOpenVoice.value || state.isRecordingAudio.value) {
print(
'录音时丢弃数据:${state.isOpenVoice.value}-${state.isRecordingAudio.value}');
return;
}
if (state.audioBuffer.length >= audioBufferSize) {