]> git.mxchange.org Git - flightgear.git/commitdiff
FGCom: use Speex codec instead of GSM codec
authorClément de l'Hamaide <clemaez@hotmail.fr>
Thu, 24 Oct 2013 10:14:15 +0000 (12:14 +0200)
committerClément de l'Hamaide <clemaez@hotmail.fr>
Thu, 24 Oct 2013 10:14:31 +0000 (12:14 +0200)
src/Network/fgcom.cxx
utils/fgcom/fgcom.cxx

index c560011dfd38d2459c0f7fceb0ec11b22b4c9487..5e7476da8ddc0b96d0124aefebfa14366c59e1fa 100644 (file)
@@ -238,7 +238,8 @@ void FGCom::postinit()
     app += _version_node->getStringValue();
 
     iaxc_set_callerid( _callsign_node->getStringValue(), app.c_str() );
     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
     iaxc_start_processing_thread ();
 
     // Now IAXClient is initialized
index f9a9883fc52d9a738fca9cef319ed35059f76268..5ea8572bf68aa4405638a2180f68657396db21bc 100644 (file)
@@ -446,8 +446,8 @@ main (int argc, char *argv[])
     callsign = DEFAULT_USER;
 
   iaxc_set_callerid ( callsign, app.c_str() );
     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 ();
   iaxc_set_event_callback (iaxc_callback);
 
   iaxc_start_processing_thread ();