更新 'src/Network/fgcom.cxx'

next
zhongjin 2 years ago
parent 0c10ae9579
commit 6785b8a22e

@ -350,6 +350,14 @@ void FGCom::postinit()
iaxc_millisleep(500); iaxc_millisleep(500);
connectToCommFrequency(); connectToCommFrequency();
SG_LOG(SG_SOUND, SG_INFO, "FGCom: postinit 初始化完成");
iaxc_millisleep(500);
iaxc_output_level_set(1.0);
} }
double FGCom::getCurrentCommVolume() const { double FGCom::getCurrentCommVolume() const {
@ -485,6 +493,7 @@ void FGCom::connectToCommFrequency() {
void FGCom::updateCall() void FGCom::updateCall()
{ {
if (_processingTimer.elapsedMSec() > IAX_DELAY) { if (_processingTimer.elapsedMSec() > IAX_DELAY) {
_processingTimer.stamp(); _processingTimer.stamp();
connectToCommFrequency(); connectToCommFrequency();
} }

Loading…
Cancel
Save