diff options
Diffstat (limited to 'src/modules/echo-cancel/adrian-aec.h')
-rw-r--r-- | src/modules/echo-cancel/adrian-aec.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/modules/echo-cancel/adrian-aec.h b/src/modules/echo-cancel/adrian-aec.h index 1f5b090a..df9f3e64 100644 --- a/src/modules/echo-cancel/adrian-aec.h +++ b/src/modules/echo-cancel/adrian-aec.h @@ -13,6 +13,13 @@ #ifndef _AEC_H /* include only once */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <pulsecore/macro.h> +#include <pulse/xmalloc.h> + #define WIDEB 2 // use double if your CPU does software-emulation of float @@ -315,6 +322,9 @@ struct AEC { // variables are public for visualization int hangover; float stepsize; + + // vfuncs that are picked based on processor features available + REAL (*dotp) (REAL[], REAL[]); }; /* Double-Talk Detector @@ -338,7 +348,7 @@ static void AEC_leaky(AEC *a); */ static REAL AEC_nlms_pw(AEC *a, REAL d, REAL x_, float stepsize); - AEC* AEC_init(int RATE); + AEC* AEC_init(int RATE, int have_vector); /* Acoustic Echo Cancellation and Suppression of one sample * in d: microphone signal with echo |