From ca0cf4725e8b71e9d4f70ee9f559020d93273e6b Mon Sep 17 00:00:00 2001 From: Simon Morlat <simon.morlat@linphone.org> Date: Wed, 30 Jun 2010 12:40:07 +0200 Subject: [PATCH] add a [sound] dc_removal property item to enable DC removal on mic->rtp MSVolume --- coreapi/linphonecore.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 2de23d2399..121b329243 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2246,6 +2246,7 @@ static void post_configure_audio_streams(LinphoneCore *lc){ float recv_gain; float ng_thres=lp_config_get_float(lc->config,"sound","ng_thres",0.05); float ng_floorgain=lp_config_get_float(lc->config,"sound","ng_floorgain",0); + int dc_removal=lp_config_get_int(lc->config,"sound","dc_removal",0); if (mic_gain!=-1) audio_stream_set_mic_gain(st,mic_gain); @@ -2255,6 +2256,9 @@ static void post_configure_audio_streams(LinphoneCore *lc){ if (recv_gain != 0) { linphone_core_set_playback_gain_db (lc,recv_gain); } + if (st->volsend){ + ms_filter_call_method(st->volsend,MS_VOLUME_REMOVE_DC,&dc_removal); + } if (linphone_core_echo_limiter_enabled(lc)){ float speed=lp_config_get_float(lc->config,"sound","el_speed",-1); thres=lp_config_get_float(lc->config,"sound","el_thres",-1); -- GitLab