diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index 41d3676..14f9e31 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -16,6 +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 + + # include #include "fgcom.hxx" @@ -647,11 +650,11 @@ 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 "; + urlcmd.append(soundpath); + SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd ); + system(urlcmd.c_str());