From d5beb4851398c3ee664e39a0ff70e30cb380657b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=BD=87=E9=98=B3?= Date: Wed, 15 May 2024 10:28:18 +0800 Subject: [PATCH] 0 --- DevicesService/Commen/ScriptCallbackObject.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DevicesService/Commen/ScriptCallbackObject.cs b/DevicesService/Commen/ScriptCallbackObject.cs index a12fdcc..e61c8c4 100644 --- a/DevicesService/Commen/ScriptCallbackObject.cs +++ b/DevicesService/Commen/ScriptCallbackObject.cs @@ -748,6 +748,11 @@ namespace DevicesService.Common { if (isopen) { + //如果开始录音上次未结束,直接结束上次录音,开始新的录音 + if (waveIn != null) + { + StopSoundRecor(false); + } if (waveIn == null) { Action a = StateSoundRecor;