Deactivate echo limiter in speaker mode.
This commit is contained in:
parent
b73f7a32e6
commit
94fcf26f48
2 changed files with 0 additions and 21 deletions
|
@ -35,14 +35,6 @@ capture_dev_id=
|
||||||
remote_ring=/data/data/org.linphone/files/ringback.wav
|
remote_ring=/data/data/org.linphone/files/ringback.wav
|
||||||
local_ring=/data/data/org.linphone/files/oldphone_mono.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]
|
[video]
|
||||||
size=vga
|
size=vga
|
||||||
|
|
||||||
|
|
|
@ -245,13 +245,6 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
||||||
*/
|
*/
|
||||||
public void routeAudioToSpeaker() {
|
public void routeAudioToSpeaker() {
|
||||||
routeAudioToSpeakerHelper(true);
|
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() {
|
public void routeAudioToReceiver() {
|
||||||
routeAudioToSpeakerHelper(false);
|
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(
|
public synchronized static final LinphoneManager createAndStart(
|
||||||
|
|
Loading…
Reference in a new issue