From 6332693ae5ce422c619e6e243be783aeca9ff938 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20de=20l=27Hamaide?= Date: Thu, 24 Oct 2013 12:14:15 +0200 Subject: [PATCH] FGCom: use Speex codec instead of GSM codec --- src/Network/fgcom.cxx | 3 ++- utils/fgcom/fgcom.cxx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 (); -- 2.39.5