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
40c1c95e
Commit
40c1c95e
authored
Oct 15, 2012
by
Ghislain MARY
Browse files
Set a default echo canceller delay if echo canceller calibration fails.
parent
539f3396
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
coreapi/linphonecore.c
coreapi/linphonecore.c
+4
-0
No files found.
coreapi/linphonecore.c
View file @
40c1c95e
...
...
@@ -1935,6 +1935,10 @@ void linphone_core_iterate(LinphoneCore *lc){
if
(
ecs
==
LinphoneEcCalibratorDone
){
int
len
=
lp_config_get_int
(
lc
->
config
,
"sound"
,
"ec_tail_len"
,
0
);
lp_config_set_int
(
lc
->
config
,
"sound"
,
"ec_delay"
,
MAX
(
lc
->
ecc
->
delay
-
(
len
/
2
),
0
));
}
else
if
(
ecs
==
LinphoneEcCalibratorFailed
)
{
lp_config_set_int
(
lc
->
config
,
"sound"
,
"ec_delay"
,
LP_CONFIG_DEFAULT_INT
(
lc
->
config
,
"ec_delay"
,
250
));
}
else
if
(
ecs
==
LinphoneEcCalibratorDoneNoEcho
)
{
linphone_core_enable_echo_cancellation
(
lc
,
FALSE
);
}
ec_calibrator_destroy
(
lc
->
ecc
);
lc
->
ecc
=
NULL
;
...
...
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