Deactivate echo limiter in speaker mode.

This commit is contained in:
Ghislain MARY 2012-11-15 11:59:14 +01:00
parent b73f7a32e6
commit 94fcf26f48
2 changed files with 0 additions and 21 deletions

View file

@ -35,14 +35,6 @@ capture_dev_id=
remote_ring=/data/data/org.linphone/files/ringback.wav
local_ring=/data/data/org.linphone/files/oldphone_mono.wav
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

@ -245,13 +245,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);
}
}
/**
@ -259,12 +252,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(