mirror of
https://github.com/danog/libtgvoip.git
synced 2024-11-27 12:44:37 +01:00
reduce NS strength
This commit is contained in:
parent
a80548e95f
commit
5de4e68040
@ -61,7 +61,7 @@ EchoCanceller::EchoCanceller(bool enableAEC, bool enableNS, bool enableAGC){
|
|||||||
WebRtcAecm_Init(aec, 16000);
|
WebRtcAecm_Init(aec, 16000);
|
||||||
AecmConfig cfg;
|
AecmConfig cfg;
|
||||||
cfg.cngMode=AecmFalse;
|
cfg.cngMode=AecmFalse;
|
||||||
cfg.echoMode=1;
|
cfg.echoMode=0;
|
||||||
WebRtcAecm_set_config(aec, cfg);
|
WebRtcAecm_set_config(aec, cfg);
|
||||||
#else
|
#else
|
||||||
aec=webrtc::WebRtcAec_Create();
|
aec=webrtc::WebRtcAec_Create();
|
||||||
@ -89,7 +89,7 @@ EchoCanceller::EchoCanceller(bool enableAEC, bool enableNS, bool enableAGC){
|
|||||||
//#ifndef TGVOIP_USE_DESKTOP_DSP
|
//#ifndef TGVOIP_USE_DESKTOP_DSP
|
||||||
ns=WebRtcNsx_Create();
|
ns=WebRtcNsx_Create();
|
||||||
WebRtcNsx_Init((NsxHandle*)ns, 48000);
|
WebRtcNsx_Init((NsxHandle*)ns, 48000);
|
||||||
WebRtcNsx_set_policy((NsxHandle*)ns, 1);
|
WebRtcNsx_set_policy((NsxHandle*)ns, 0);
|
||||||
/*#else
|
/*#else
|
||||||
ns=WebRtcNs_Create();
|
ns=WebRtcNs_Create();
|
||||||
WebRtcNs_Init((NsHandle*)ns, 48000);
|
WebRtcNs_Init((NsHandle*)ns, 48000);
|
||||||
|
Loading…
Reference in New Issue
Block a user