更新 'src/Network/fgcom.cxx'

This commit is contained in:
zhongjin 2022-11-30 16:43:08 +08:00
parent 0c10ae9579
commit 6785b8a22e

View File

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