1
0
Fork 0

FGCom: use Speex codec instead of GSM codec

This commit is contained in:
Clément de l'Hamaide 2013-10-24 12:14:15 +02:00
parent c4f02cc41e
commit 6332693ae5
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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 ();