更新 'src/Network/fgcom.cxx'

next
zhongjin 2 years ago
parent b38483579b
commit 5b7b20aa0a

@ -646,7 +646,7 @@ void FGCom::valueChanged(SGPropertyNode *prop)
_mpTransmitPowerNode->setValue(1.0);
SGPath soundpath( globals->get_fg_root() );
soundpath.append("/Sounds/click.wav");
soundpath.append("/Sounds/ptt.wav");
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT active: " << soundpath);
@ -669,6 +669,18 @@ void FGCom::valueChanged(SGPropertyNode *prop)
// SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT release: " << _currentCallFrequency << " vol=" << getCurrentCommVolume());
_mpTransmitFrequencyNode->setValue(0);
_mpTransmitPowerNode->setValue(0);
SGPath soundpath( globals->get_fg_root() );
soundpath.append("/Sounds/click.wav");
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT active: " << soundpath);
std::string urlcmd = "ffplay -nodisp -autoexit -loglevel quiet -i ";
urlcmd.append(soundpath.c_str());
SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd );
system(urlcmd.c_str());
}
}

Loading…
Cancel
Save