From 5620908a2760b2964c4a59cbc81b49ad073e414f Mon Sep 17 00:00:00 2001 From: smorlat Date: Tue, 24 Mar 2009 22:22:37 +0000 Subject: [PATCH] fix bug git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@365 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/coreapi/linphonecore.c | 8 ++++---- linphone/mediastreamer2/src/msvolume.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/linphone/coreapi/linphonecore.c b/linphone/coreapi/linphonecore.c index a17ab2c11..6fd620bfc 100644 --- a/linphone/coreapi/linphonecore.c +++ b/linphone/coreapi/linphonecore.c @@ -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) diff --git a/linphone/mediastreamer2/src/msvolume.c b/linphone/mediastreamer2/src/msvolume.c index b30f35789..3de030e5e 100644 --- a/linphone/mediastreamer2/src/msvolume.c +++ b/linphone/mediastreamer2/src/msvolume.c @@ -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){