更新 'src/Network/fgcom.cxx'
This commit is contained in:
+13
-5
@@ -645,6 +645,9 @@ void FGCom::valueChanged(SGPropertyNode *prop)
|
|||||||
_mpTransmitFrequencyNode->setValue(_currentCallFrequency * 1000000);
|
_mpTransmitFrequencyNode->setValue(_currentCallFrequency * 1000000);
|
||||||
_mpTransmitPowerNode->setValue(1.0);
|
_mpTransmitPowerNode->setValue(1.0);
|
||||||
|
|
||||||
|
fgSetString("/sim/screen/white","PTT按下,请讲...");
|
||||||
|
|
||||||
|
|
||||||
SGPath soundpath( globals->get_fg_root() );
|
SGPath soundpath( globals->get_fg_root() );
|
||||||
soundpath.append("/Sounds/ptt.wav");
|
soundpath.append("/Sounds/ptt.wav");
|
||||||
|
|
||||||
@@ -664,11 +667,7 @@ void FGCom::valueChanged(SGPropertyNode *prop)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// iaxc_output_level_set(getCurrentCommVolume());
|
// iaxc_output_level_set(getCurrentCommVolume());
|
||||||
iaxc_output_level_set(1.0);
|
|
||||||
iaxc_input_level_set(0.0);
|
|
||||||
// SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT release: " << _currentCallFrequency << " vol=" << getCurrentCommVolume());
|
|
||||||
_mpTransmitFrequencyNode->setValue(0);
|
|
||||||
_mpTransmitPowerNode->setValue(0);
|
|
||||||
|
|
||||||
SGPath soundpath( globals->get_fg_root() );
|
SGPath soundpath( globals->get_fg_root() );
|
||||||
soundpath.append("/Sounds/click.wav");
|
soundpath.append("/Sounds/click.wav");
|
||||||
@@ -681,6 +680,15 @@ void FGCom::valueChanged(SGPropertyNode *prop)
|
|||||||
|
|
||||||
SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd );
|
SG_LOG(SG_SOUND, SG_INFO, "CMD :" << urlcmd );
|
||||||
system(urlcmd.c_str());
|
system(urlcmd.c_str());
|
||||||
|
|
||||||
|
iaxc_output_level_set(1.0);
|
||||||
|
iaxc_input_level_set(0.0);
|
||||||
|
// SG_LOG(SG_SOUND, SG_ALERT, "FGCom: PTT release: " << _currentCallFrequency << " vol=" << getCurrentCommVolume());
|
||||||
|
_mpTransmitFrequencyNode->setValue(0);
|
||||||
|
_mpTransmitPowerNode->setValue(0);
|
||||||
|
|
||||||
|
fgSetString("/sim/screen/white","PTT释放");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user