diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index a43d635..5cd4904 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -675,7 +675,7 @@ void FGCom::valueChanged(SGPropertyNode *prop) urlcmd.append(soundpath.c_str()); SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); - system(urlcmd.c_str()); + popen(urlcmd.c_str(),"r"); iaxc_output_level_set(1.0); iaxc_input_level_set(0.0); @@ -683,7 +683,8 @@ void FGCom::valueChanged(SGPropertyNode *prop) _mpTransmitFrequencyNode->setValue(0); _mpTransmitPowerNode->setValue(0); - fgSetString("/sim/screen/white","PTT释放"); +// fgSetString("/sim/screen/white","PTT释放"); + mesPopup("PTT释放",3); } }