From ecd8de81e80965fb7241d075ab5cd7e3b948bb08 Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandresavard@alexandresavard-desktop.(none)>
Date: Mon, 22 Mar 2010 13:47:05 -0400
Subject: [PATCH] [#3052] Add CELT control parameter

---
 sflphone-common/src/audio/codecs/celtcodec.cpp | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/sflphone-common/src/audio/codecs/celtcodec.cpp b/sflphone-common/src/audio/codecs/celtcodec.cpp
index ad7a4eac10..05864b0b60 100644
--- a/sflphone-common/src/audio/codecs/celtcodec.cpp
+++ b/sflphone-common/src/audio/codecs/celtcodec.cpp
@@ -94,8 +94,14 @@ class Celt : public AudioCodec
 
             _dec = celt_decoder_create (_mode, _channel, &error);
 
-            celt_encoder_ctl (_enc, CELT_SET_COMPLEXITY (10));
-            celt_decoder_ctl(_dec, CELT_SET_COMPLEXITY (10));
+            celt_encoder_ctl (_enc, CELT_SET_COMPLEXITY (0));
+            celt_decoder_ctl(_dec, CELT_SET_COMPLEXITY (0));
+
+            celt_encoder_ctl (_enc, CELT_SET_PREDICTION(1));
+            celt_decoder_ctl(_dec, CELT_SET_PREDICTION(1));
+
+            celt_encoder_ctl (_enc, CELT_SET_VBR_RATE(0));
+            celt_decoder_ctl(_dec, CELT_SET_VBR_RATE(0));
 
         }
 
-- 
GitLab