aboutsummaryrefslogtreecommitdiff
path: root/src/xtract_macros_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xtract_macros_private.h')
-rw-r--r--src/xtract_macros_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xtract_macros_private.h b/src/xtract_macros_private.h
index bfe0b63..217b46c 100644
--- a/src/xtract_macros_private.h
+++ b/src/xtract_macros_private.h
@@ -40,6 +40,8 @@
#define XTRACT_FUNDAMENTAL_DEFAULT 440.0
#define XTRACT_CHECK_nyquist if(!nyquist) nyquist = XTRACT_SR_DEFAULT / 2
#define XTRACT_CHECK_q if(!q) q = XTRACT_SR_DEFAULT / N
+#define XTRACT_GET_MAX max = result[m] > max ? result[m] : max
+#define XTRACT_SET_FREQUENCY result[M + m] = n * q
#define XTRACT_IS_ODD(x) (x % 2 != 0 ? 1 : 0)
#define XTRACT_SR_LIMIT SR_UPPER_LIMIT
#define XTRACT_FFT_BANDS_MIN 16