Merge branch 'develop_sky_liyi' into 'develop_sky'
fix:调整录音时不播放声音 See merge request StarlockTeam/app-starlock!264
This commit is contained in:
commit
e126dd60fc
@ -973,7 +973,7 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
|
|||||||
switch (contentType) {
|
switch (contentType) {
|
||||||
case TalkData_ContentTypeE.G711:
|
case TalkData_ContentTypeE.G711:
|
||||||
// 没有开启所有和录音时不缓存和播放音频
|
// 没有开启所有和录音时不缓存和播放音频
|
||||||
if (!state.isOpenVoice.value && state.isRecordingAudio.value) {
|
if (!state.isOpenVoice.value || state.isRecordingAudio.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (state.audioBuffer.length >= audioBufferSize) {
|
if (state.audioBuffer.length >= audioBufferSize) {
|
||||||
|
|||||||
@ -110,7 +110,9 @@ class TalkViewLogic extends BaseGetXController {
|
|||||||
switch (contentType) {
|
switch (contentType) {
|
||||||
case TalkData_ContentTypeE.G711:
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (state.audioBuffer.length >= audioBufferSize) {
|
if (state.audioBuffer.length >= audioBufferSize) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user