aboutsummaryrefslogtreecommitdiff
path: root/limit_fftsize.c
diff options
context:
space:
mode:
Diffstat (limited to 'limit_fftsize.c')
-rw-r--r--limit_fftsize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/limit_fftsize.c b/limit_fftsize.c
new file mode 100644
index 0000000..9071289
--- /dev/null
+++ b/limit_fftsize.c
@@ -0,0 +1 @@
+#include "fftease.h" extern void post(const char *fmt, ...); void limit_fftsize(int *N, int *Nw, char *OBJECT_NAME) { if(*N > MAX_N){ // post("%s: N set to maximum FFT size of %d",OBJECT_NAME,MAX_N); *N = MAX_N; } if(*Nw > MAX_Nw){ // post("%s: Nw set to maximum window size of %d",OBJECT_NAME,MAX_Nw); *Nw = MAX_Nw; } } \ No newline at end of file