From: Clément de l'Hamaide Date: Thu, 24 Oct 2013 10:14:15 +0000 (+0200) Subject: FGCom: use Speex codec instead of GSM codec X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6332693ae5ce422c619e6e243be783aeca9ff938;p=flightgear.git FGCom: use Speex codec instead of GSM codec --- diff --git a/src/Network/fgcom.cxx b/src/Network/fgcom.cxx index c560011df..5e7476da8 100644 --- a/src/Network/fgcom.cxx +++ b/src/Network/fgcom.cxx @@ -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 diff --git a/utils/fgcom/fgcom.cxx b/utils/fgcom/fgcom.cxx index f9a9883fc..5ea8572bf 100644 --- a/utils/fgcom/fgcom.cxx +++ b/utils/fgcom/fgcom.cxx @@ -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 ();