Commit 5620908a authored by smorlat's avatar smorlat
Browse files

fix bug


git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@365 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent cf62d28f
......@@ -1442,15 +1442,15 @@ static void post_configure_audio_streams(LinphoneCore *lc){
float force=lp_config_get_float(lc->config,"sound","el_force",-1);
MSFilter *f;
if (st->el_type==ELControlMic){
f=st->volrecv;
f=st->volsend;
if (speed==-1) speed=0.15;
if (force==-1) force=10;
}
else{
f=st->volsend;
else if (st->el_type==ELControlSpeaker){
f=st->volrecv;
if (speed==-1) speed=0.02;
if (force==-1) force=5;
}
}else ms_fatal("Should not happen");
if (speed!=-1)
ms_filter_call_method(f,MS_VOLUME_SET_EA_SPEED,&speed);
if (thres!=-1)
......
......@@ -104,7 +104,7 @@ static void volume_echo_avoider_process(Volume *v){
}
}
ms_message("ea_active=%i, peer_e=%f gain=%f gain_k=%f",v->ea_active,peer_e,v->gain, v->gain_k);
ms_message("ea_active=%i, peer_e=%f gain=%f gain_k=%f force=%f",v->ea_active,peer_e,v->gain, v->gain_k,v->force);
}
static int volume_set_gain(MSFilter *f, void *arg){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment