更新 'utils/fgcom/fgcom_external.cxx'
This commit is contained in:
@@ -135,7 +135,7 @@ int main(int argc, char** argv)
|
|||||||
sgSocket.setBlocking(false);
|
sgSocket.setBlocking(false);
|
||||||
|
|
||||||
//lib_setVolume(0.0, 1.0);
|
//lib_setVolume(0.0, 1.0);
|
||||||
iaxc_input_level_set(0.1);
|
iaxc_input_level_set(0.0);
|
||||||
iaxc_output_level_set(0.8);
|
iaxc_output_level_set(0.8);
|
||||||
|
|
||||||
|
|
||||||
@@ -186,8 +186,8 @@ int main(int argc, char** argv)
|
|||||||
SG_LOG( SG_GENERAL, SG_INFO, "[SPEAK] unmute mic, mute speaker" );
|
SG_LOG( SG_GENERAL, SG_INFO, "[SPEAK] unmute mic, mute speaker" );
|
||||||
|
|
||||||
//lib_setVolume(1.0, 0.0);
|
//lib_setVolume(1.0, 0.0);
|
||||||
iaxc_input_level_set(1.0);
|
iaxc_input_level_set(0.8);
|
||||||
iaxc_output_level_set(0.1);
|
iaxc_output_level_set(0.0);
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -195,7 +195,7 @@ int main(int argc, char** argv)
|
|||||||
//lib_setVolume(0.0, currentData.outputVol);
|
//lib_setVolume(0.0, currentData.outputVol);
|
||||||
//lib_setVolume(0.0, 1.0);
|
//lib_setVolume(0.0, 1.0);
|
||||||
|
|
||||||
iaxc_input_level_set(0.1);
|
iaxc_input_level_set(0.0);
|
||||||
iaxc_output_level_set(0.8);
|
iaxc_output_level_set(0.8);
|
||||||
|
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ int main(int argc, char** argv)
|
|||||||
if(currentData.outputVol != previousData.outputVol)
|
if(currentData.outputVol != previousData.outputVol)
|
||||||
//lib_setVolume(0.0, currentData.outputVol);
|
//lib_setVolume(0.0, currentData.outputVol);
|
||||||
|
|
||||||
iaxc_input_level_set(0.1);
|
iaxc_input_level_set(0.9);
|
||||||
iaxc_output_level_set(0.8);
|
iaxc_output_level_set(0.8);
|
||||||
|
|
||||||
|
|
||||||
@@ -581,16 +581,16 @@ bool lib_init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
iaxc_set_callerid( _callsign.c_str(), _app.c_str() );
|
iaxc_set_callerid( _callsign.c_str(), _app.c_str() );
|
||||||
iaxc_set_formats(IAXC_FORMAT_SPEEX, IAXC_FORMAT_ULAW|IAXC_FORMAT_SPEEX);
|
// iaxc_set_formats(IAXC_FORMAT_SPEEX, IAXC_FORMAT_ULAW|IAXC_FORMAT_SPEEX);
|
||||||
// iaxc_set_formats(IAXC_FORMAT_GSM, IAXC_FORMAT_ULAW|IAXC_FORMAT_GSM);
|
iaxc_set_formats(IAXC_FORMAT_GSM, IAXC_FORMAT_ULAW|IAXC_FORMAT_GSM);
|
||||||
|
|
||||||
iaxc_set_speex_settings(1, 5, 0, 1, 0, 3);
|
// iaxc_set_speex_settings(1, 5, 0, 1, 0, 3);
|
||||||
iaxc_set_filters(IAXC_FILTER_AGC | IAXC_FILTER_DENOISE);
|
iaxc_set_filters(IAXC_FILTER_AGC | IAXC_FILTER_DENOISE);
|
||||||
iaxc_set_event_callback(iaxc_callback);
|
iaxc_set_event_callback(iaxc_callback);
|
||||||
iaxc_start_processing_thread ();
|
iaxc_start_processing_thread ();
|
||||||
// lib_setSilenceThreshold(_silenceThd);
|
// lib_setSilenceThreshold(_silenceThd);
|
||||||
|
|
||||||
iaxc_input_level_set(0.1);
|
iaxc_input_level_set(0.0);
|
||||||
iaxc_output_level_set(0.8);
|
iaxc_output_level_set(0.8);
|
||||||
|
|
||||||
iaxc_millisleep(30);
|
iaxc_millisleep(30);
|
||||||
|
|||||||
Reference in New Issue
Block a user