更新 'src/Network/fgcom.cxx'
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user