mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
set good settings.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@362 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
9d15680561
commit
7636f9b8ea
1 changed files with 9 additions and 2 deletions
|
|
@ -1441,9 +1441,16 @@ static void post_configure_audio_streams(LinphoneCore *lc){
|
|||
float thres=lp_config_get_float(lc->config,"sound","el_thres",-1);
|
||||
float force=lp_config_get_float(lc->config,"sound","el_force",-1);
|
||||
MSFilter *f;
|
||||
if (st->el_type==ELControlMic)
|
||||
if (st->el_type==ELControlMic){
|
||||
f=st->volrecv;
|
||||
else f=st->volsend;
|
||||
if (speed==-1) speed=0.15;
|
||||
if (force==-1) force=10;
|
||||
}
|
||||
else{
|
||||
f=st->volsend;
|
||||
if (speed==-1) speed=0.02;
|
||||
if (force==-1) force=5;
|
||||
}
|
||||
if (speed!=-1)
|
||||
ms_filter_call_method(f,MS_VOLUME_SET_EA_SPEED,&speed);
|
||||
if (thres!=-1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue