From 81ec0e0d89fc87d517414e92522a0f4af19a13b7 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 1 Dec 2022 10:47:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Network/fgcom.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Network/fgcom.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 6fae1dc..a7c397d 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -367,7 +367,7 @@ void FGCom::postinit() iaxc_input_level_set(0.1); - iaxc_output_level_set(0.5); + iaxc_output_level_set(0.4); iaxc_millisleep(300); @@ -386,17 +386,18 @@ void FGCom::postinit() } double FGCom::getCurrentCommVolume() const { - double rv = 1.0; + double rv = 0.4; - if (_speakerLevel_node) - rv = _speakerLevel_node->getFloatValue(); + if (_speakerLevel_node) { + rv = rv * _speakerLevel_node->getFloatValue(); SG_LOG(SG_SOUND, SG_ALERT, "FGCom: _speakerLevel_node " << _speakerLevel_node->getFloatValue()); + } - if (_commVolumeNode) - + if (_commVolumeNode) { //暂时关闭 _commVolumeNode //rv = rv * _commVolumeNode->getFloatValue(); SG_LOG(SG_SOUND, SG_ALERT, "FGCom: _commVolumeNode " << _commVolumeNode->getFloatValue()); + } return rv; }