From 0c61df5971d78f2fb4036252a3e1d9c7f5abeefb Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 12 Dec 2022 19:56:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Instrumentation/commr?= =?UTF-8?q?adio.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Instrumentation/commradio.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Instrumentation/commradio.cxx b/src/Instrumentation/commradio.cxx index 902726a..8c625bf 100644 --- a/src/Instrumentation/commradio.cxx +++ b/src/Instrumentation/commradio.cxx @@ -97,16 +97,15 @@ void AtisSpeaker::valueChanged(SGPropertyNode * node) if (!fgGetBool("/sim/sound/working", false)) return; - SG_LOG(SG_INSTR,SG_INFO,"node:" << node); - - string newText = node->getStringValue(); - SG_LOG(SG_INSTR,SG_INFO,"newText:" << newText); if (_synthesizeRequest.text == newText) return; + SG_LOG(SG_INSTR,SG_INFO,"newText:" << newText); + + _synthesizeRequest.text = newText; string voice = "cmu_us_arctic_slt";