Deactivate echo limiter in speaker mode.

This commit is contained in:
Ghislain MARY 2012-11-13 16:31:40 +01:00
parent 04ab8dea75
commit 3f3293702a
3 changed files with 0 additions and 29 deletions

View file

@ -36,14 +36,6 @@ remote_ring=/data/data/org.linphone/files/ringback.wav
local_ring=/data/data/org.linphone/files/oldphone_mono.wav
dtmf_player_amp=0.1
el_type=mic
el_thres=0.03
el_force=100000
el_sustain=600
el_transmit_thres=1.7
ng_floorgain=0.01
[video]
size=vga

View file

@ -38,14 +38,6 @@ remote_ring=/data/data/org.linphone/files/ringback.wav
local_ring=/data/data/org.linphone/files/oldphone_mono.wav
dtmf_player_amp=0.1
el_type=mic
el_thres=0.03
el_force=100000
el_sustain=600
el_transmit_thres=1.7
ng_floorgain=0.01
[video]
size=vga

View file

@ -246,13 +246,6 @@ public final class LinphoneManager implements LinphoneCoreListener {
*/
public void routeAudioToSpeaker() {
routeAudioToSpeakerHelper(true);
LinphoneCall currentCall = mLc.getCurrentCall();
if (currentCall != null && !Hacks.hasBuiltInEchoCanceller()) {
/*disable EC, it is not efficient enough on speaker mode due to bad quality of speakers and saturation*/
currentCall.enableEchoCancellation(false);
/* instead we prefer the echo limiter */
currentCall.enableEchoLimiter(true);
}
}
@ -271,12 +264,6 @@ public final class LinphoneManager implements LinphoneCoreListener {
*/
public void routeAudioToReceiver() {
routeAudioToSpeakerHelper(false);
LinphoneCall call=mLc.getCurrentCall();
if (call!=null && !Hacks.hasBuiltInEchoCanceller()) {
//Restore default value
call.enableEchoCancellation(mLc.isEchoCancellationEnabled());
call.enableEchoLimiter(mLc.isEchoLimiterEnabled());
}
}
public synchronized static final LinphoneManager createAndStart(