From: Mike Jerris Date: Mon, 21 Mar 2016 20:36:41 +0000 (-0500) Subject: Merge pull request #762 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-8961... X-Git-Tag: v1.6.7^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e6593aa730a718610568fdfd267ea052ea7826c;p=thirdparty%2Ffreeswitch.git Merge pull request #762 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-8961-avmd-increase-robustness-of-variance to master * commit '63a30499dbb8d280dbf4d18b393aa68ac3ce8c15': FS-8961 Increase robustness of estimation --- 9e6593aa730a718610568fdfd267ea052ea7826c diff --cc src/mod/applications/mod_avmd/mod_avmd.c index 66a07264c1,4acba1ca6d..a50c8b6f96 --- a/src/mod/applications/mod_avmd/mod_avmd.c +++ b/src/mod/applications/mod_avmd/mod_avmd.c @@@ -78,18 -105,11 +92,11 @@@ /*! Maximum frequency as digital normalized frequency */ #define MAX_FREQUENCY_R(r) ((2.0 * M_PI * MAX_FREQUENCY) / (r)) /* decrease this value to eliminate false positives */ -#define VARIANCE_THRESHOLD (0.001) +#define VARIANCE_THRESHOLD (0.0001) - #include "amplitude.h" - #include "buffer.h" - #include "desa2.h" - //#include "goertzel.h" - #include "psi.h" - #include "sma_buf.h" - #include "options.h" - - #ifdef FASTMATH - #include "fast_acosf.h" + #ifdef AVMD_REQUIRE_CONTINUOUS_STREAK + /* increase this value to eliminate false positives */ + #define SAMPLES_CONSECUTIVE_STREAK 3 #endif /*! Syntax of the API call. */