diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-02-02 20:00:58 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-02-02 20:00:58 +0000 |
commit | 49d54b532c9aef4a9cc11aebcb636dd458252c90 (patch) | |
tree | d7e02c681f185118d3ba289b2ad7fd17d4079cdb /mg2ec_const.h | |
parent | 14b8cc1011fc6fae9067a73d0cb629e69ae17ecb (diff) |
More echo canceller updates for MG2. Thanks mgernoth, you rock! (#5520)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@933 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'mg2ec_const.h')
-rw-r--r-- | mg2ec_const.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mg2ec_const.h b/mg2ec_const.h index 677d8a7..c34a5c4 100644 --- a/mg2ec_const.h +++ b/mg2ec_const.h @@ -62,11 +62,14 @@ * the input-signal */ #define MAX_SIGN_ERROR 3000 -/* Filter out coefficients which are smaller than this - * percentage of the second biggest coefficient. - * If you comment out this define, the filtering-code will - * not be used */ -#define FILTER_PERCENT 1 +/* Number of coefficients really used for calculating the + * simulated echo. The value specifies how many of the + * biggest coefficients are used for calculating rs. + * This helps on long echo-tails by artificially limiting + * the number of coefficients for the calculation and + * preventing overflows. + * Comment this to deactivate the code */ +#define USED_COEFFS 64 /* Backup coefficients every this number of samples */ #define BACKUP 256 |