更新 'src/Network/fgcom.cxx'
This commit is contained in:
@@ -237,7 +237,7 @@ void FGCom::init()
|
|||||||
void FGCom::postinit()
|
void FGCom::postinit()
|
||||||
{
|
{
|
||||||
|
|
||||||
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: postinit() 11111111111111111111111111");
|
//SG_LOG(SG_SOUND, SG_ALERT, "FGCom: postinit() 11111111111111111111111111");
|
||||||
|
|
||||||
if( !_enabled ) {
|
if( !_enabled ) {
|
||||||
return;
|
return;
|
||||||
@@ -260,9 +260,9 @@ void FGCom::postinit()
|
|||||||
std::string app = "FGFS-";
|
std::string app = "FGFS-";
|
||||||
app += _version_node->getStringValue();
|
app += _version_node->getStringValue();
|
||||||
|
|
||||||
//iaxc_set_callerid( _callsign_node->getStringValue().c_str(), app.c_str() );
|
iaxc_set_callerid( _callsign_node->getStringValue().c_str(), app.c_str() );
|
||||||
|
|
||||||
iaxc_set_callerid("guest","FGCOM");
|
//iaxc_set_callerid("guest","FGCOM");
|
||||||
|
|
||||||
//iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_ULAW|IAXC_FORMAT_SPEEX);
|
//iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_ULAW|IAXC_FORMAT_SPEEX);
|
||||||
|
|
||||||
@@ -317,7 +317,7 @@ void FGCom::postinit()
|
|||||||
// so all following is unused finally until someone
|
// so all following is unused finally until someone
|
||||||
// implement "multi-device" support in IAX audio driver
|
// implement "multi-device" support in IAX audio driver
|
||||||
|
|
||||||
/*
|
|
||||||
SGPropertyNode *node = fgGetNode("/sim/fgcom", 0, true);
|
SGPropertyNode *node = fgGetNode("/sim/fgcom", 0, true);
|
||||||
|
|
||||||
struct iaxc_audio_device *devs;
|
struct iaxc_audio_device *devs;
|
||||||
@@ -363,7 +363,7 @@ void FGCom::postinit()
|
|||||||
if( devs[i].capabilities & IAXC_AD_OUTPUT_DEFAULT )
|
if( devs[i].capabilities & IAXC_AD_OUTPUT_DEFAULT )
|
||||||
_selectedOutput_node->setIntValue(devs[i].devID);
|
_selectedOutput_node->setIntValue(devs[i].devID);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
iaxc_input_level_set(0.1);
|
iaxc_input_level_set(0.1);
|
||||||
iaxc_output_level_set(0.5);
|
iaxc_output_level_set(0.5);
|
||||||
@@ -372,11 +372,11 @@ void FGCom::postinit()
|
|||||||
|
|
||||||
|
|
||||||
// Do the first call at start
|
// Do the first call at start
|
||||||
// setupCommFrequency();
|
setupCommFrequency();
|
||||||
|
|
||||||
// connectToCommFrequency();
|
connectToCommFrequency();
|
||||||
|
|
||||||
iaxc_call("guest:guest@fgcom.jingweiht.com/01118300");
|
// iaxc_call("guest:guest@fgcom.jingweiht.com/01118300");
|
||||||
|
|
||||||
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: postinit 初始化完成");
|
SG_LOG(SG_SOUND, SG_ALERT, "FGCom: postinit 初始化完成");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user