FGCom: use Speex codec instead of GSM codec
This commit is contained in:
parent
c4f02cc41e
commit
6332693ae5
2 changed files with 4 additions and 3 deletions
|
@ -238,7 +238,8 @@ void FGCom::postinit()
|
|||
app += _version_node->getStringValue();
|
||||
|
||||
iaxc_set_callerid( _callsign_node->getStringValue(), app.c_str() );
|
||||
iaxc_set_formats( IAXC_FORMAT_GSM, IAXC_FORMAT_GSM );
|
||||
iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_SPEEX);
|
||||
iaxc_set_speex_settings(1, 5, 0, 1, 0, 3);
|
||||
iaxc_start_processing_thread ();
|
||||
|
||||
// Now IAXClient is initialized
|
||||
|
|
|
@ -446,8 +446,8 @@ main (int argc, char *argv[])
|
|||
callsign = DEFAULT_USER;
|
||||
|
||||
iaxc_set_callerid ( callsign, app.c_str() );
|
||||
iaxc_set_formats (codec,
|
||||
IAXC_FORMAT_ULAW | IAXC_FORMAT_GSM | IAXC_FORMAT_SPEEX);
|
||||
iaxc_set_formats (IAXC_FORMAT_SPEEX, IAXC_FORMAT_SPEEX);
|
||||
iaxc_set_speex_settings(1, 5, 0, 1, 0, 3);
|
||||
iaxc_set_event_callback (iaxc_callback);
|
||||
|
||||
iaxc_start_processing_thread ();
|
||||
|
|
Loading…
Reference in a new issue