From dcf4f45d3162d0af876c7d919c3daa94a74ee4be Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 6 Dec 2022 16:05:23 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 5bff1dc..518b3d3 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -16,11 +16,9 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -#include -using std::string; +//#include - -# include +#include #include "fgcom.hxx" @@ -651,8 +649,10 @@ void FGCom::valueChanged(SGPropertyNode *prop) SGPath soundpath( globals->get_fg_root() ); soundpath.append( "/Sounds/click.wav" ); + SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT active: " << soundpath); - string urlcmd = "ffplay -nodisp -autoexit -loglevel quiet -i "; + + std::string urlcmd = "ffplay -nodisp -autoexit -loglevel quiet -i "; urlcmd.append(soundpath); SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); system(urlcmd.c_str());