]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Merge pull request #762 in FS/freeswitch from ~PIOTRGREGOR/freeswitch:bugfix/FS-8961...
authorMike Jerris <mike@jerris.com>
Mon, 21 Mar 2016 20:36:41 +0000 (15:36 -0500)
committerMike Jerris <mike@jerris.com>
Mon, 21 Mar 2016 20:36:41 +0000 (15:36 -0500)
* commit '63a30499dbb8d280dbf4d18b393aa68ac3ce8c15':
  FS-8961 Increase robustness of estimation

1  2 
src/mod/applications/mod_avmd/mod_avmd.c

index 66a07264c1a78110c0bf0e508e821ba5543a0a40,4acba1ca6d9445acf4583812e080b67773f698a0..a50c8b6f96933cb594ef3c9c2003f1a80f828a1b
  /*! 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. */