From ec1c5f5a9223dd6553d94708ec410ae42ae235d0 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Tue, 6 Dec 2022 16:19:17 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index fc744a7..054e740 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -650,10 +650,10 @@ void FGCom::valueChanged(SGPropertyNode *prop) SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT active: " << soundpath); - //std::string urlcmd = "ffplay -nodisp -autoexit -loglevel quiet -i " + soundpath; + std::string urlcmd = "ffplay -nodisp -autoexit -loglevel quiet -i "; - //SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); - //system(urlcmd.c_str()); + SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); + system(urlcmd.c_str(),soundpath.c_str());