Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
4068795f
Commit
4068795f
authored
Oct 19, 2011
by
Simon Morlat
Browse files
remove redundant speaker_gain (playback_gain_db already exists)
parent
949b3cd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
coreapi/linphonecall.c
coreapi/linphonecall.c
+0
-2
No files found.
coreapi/linphonecall.c
View file @
4068795f
...
@@ -853,7 +853,6 @@ static void parametrize_equalizer(LinphoneCore *lc, AudioStream *st){
...
@@ -853,7 +853,6 @@ static void parametrize_equalizer(LinphoneCore *lc, AudioStream *st){
void
_post_configure_audio_stream
(
AudioStream
*
st
,
LinphoneCore
*
lc
,
bool_t
muted
){
void
_post_configure_audio_stream
(
AudioStream
*
st
,
LinphoneCore
*
lc
,
bool_t
muted
){
float
mic_gain
=
lp_config_get_float
(
lc
->
config
,
"sound"
,
"mic_gain"
,
1
);
float
mic_gain
=
lp_config_get_float
(
lc
->
config
,
"sound"
,
"mic_gain"
,
1
);
float
spk_gain
=
lp_config_get_float
(
lc
->
config
,
"sound"
,
"speaker_gain"
,
1
);
float
thres
=
0
;
float
thres
=
0
;
float
recv_gain
;
float
recv_gain
;
float
ng_thres
=
lp_config_get_float
(
lc
->
config
,
"sound"
,
"ng_thres"
,
0
.
05
);
float
ng_thres
=
lp_config_get_float
(
lc
->
config
,
"sound"
,
"ng_thres"
,
0
.
05
);
...
@@ -898,7 +897,6 @@ void _post_configure_audio_stream(AudioStream *st, LinphoneCore *lc, bool_t mute
...
@@ -898,7 +897,6 @@ void _post_configure_audio_stream(AudioStream *st, LinphoneCore *lc, bool_t mute
float
floorgain
=
1
/
mic_gain
;
float
floorgain
=
1
/
mic_gain
;
int
spk_agc
=
lp_config_get_int
(
lc
->
config
,
"sound"
,
"speaker_agc_enabled"
,
0
);
int
spk_agc
=
lp_config_get_int
(
lc
->
config
,
"sound"
,
"speaker_agc_enabled"
,
0
);
ms_filter_call_method
(
st
->
volrecv
,
MS_VOLUME_ENABLE_AGC
,
&
spk_agc
);
ms_filter_call_method
(
st
->
volrecv
,
MS_VOLUME_ENABLE_AGC
,
&
spk_agc
);
ms_filter_call_method
(
st
->
volrecv
,
MS_VOLUME_SET_GAIN
,
&
spk_gain
);
ms_filter_call_method
(
st
->
volrecv
,
MS_VOLUME_SET_NOISE_GATE_THRESHOLD
,
&
ng_thres
);
ms_filter_call_method
(
st
->
volrecv
,
MS_VOLUME_SET_NOISE_GATE_THRESHOLD
,
&
ng_thres
);
ms_filter_call_method
(
st
->
volrecv
,
MS_VOLUME_SET_NOISE_GATE_FLOORGAIN
,
&
floorgain
);
ms_filter_call_method
(
st
->
volrecv
,
MS_VOLUME_SET_NOISE_GATE_FLOORGAIN
,
&
floorgain
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment