更新 'src/Network/fgcom.cxx'

next
zhongjin 2 years ago
parent 80f2f47f72
commit dcf4f45d31

@ -16,11 +16,9 @@
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <stdlib.h> //#include <stdlib.h>
using std::string;
#include <config.h>
# include <config.h>
#include "fgcom.hxx" #include "fgcom.hxx"
@ -651,8 +649,10 @@ void FGCom::valueChanged(SGPropertyNode *prop)
SGPath soundpath( globals->get_fg_root() ); SGPath soundpath( globals->get_fg_root() );
soundpath.append( "/Sounds/click.wav" ); soundpath.append( "/Sounds/click.wav" );
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT active: " << soundpath); 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); urlcmd.append(soundpath);
SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd );
system(urlcmd.c_str()); system(urlcmd.c_str());

Loading…
Cancel
Save