mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 23:28:09 +00:00
add a [sound] dc_removal property item to enable DC removal on mic->rtp MSVolume
This commit is contained in:
parent
ab5503fca8
commit
ca0cf4725e
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue