Fix EC/EL and conferencing.

This commit is contained in:
Guillaume Beraudo 2011-10-21 14:19:55 +02:00
parent 9136acd614
commit ae6747dbd5

View file

@ -236,13 +236,13 @@ public final class LinphoneManager implements LinphoneCoreListener {
public void routeAudioToSpeaker(boolean isUserRequest) {
if (isUserRequest) sUserRequestedSpeaker = true;
routeAudioToSpeakerHelper(true);
if (mLc.isIncall()) {
LinphoneCall currentCall = mLc.getCurrentCall();
if (currentCall != null) {
/*disable EC, it is not efficient enough on speaker mode due to bad quality of speakers and saturation*/
mLc.getCurrentCall().enableEchoCancellation(false);
currentCall.enableEchoCancellation(false);
/* instead we prefer the echo limiter */
mLc.getCurrentCall().enableEchoLimiter(true);
currentCall.enableEchoLimiter(true);
}
}
/**