summaryrefslogtreecommitdiff
path: root/src/fft.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fft.h')
-rw-r--r--src/fft.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fft.h b/src/fft.h
new file mode 100644
index 0000000..6066d52
--- /dev/null
+++ b/src/fft.h
@@ -0,0 +1,19 @@
+#ifndef FFT_H
+#define FFT_H
+
+/* Everything here comes from Audacity 1.3.13
+ (orignally in C++ and with more genericity and functionnality)
+ Original Author : Dominic Mazzoni
+ Licenced under GPL 2.0 (see LICENCE)
+*/
+
+#define PSNumS 256
+#define PSHalf 128
+void PowerSpectrum(float In[PSNumS], float Out[PSHalf]);
+
+void FFT(int NumSamples, int InverseTransform,
+ float *RealIn, float *ImagIn, float *RealOut, float *ImagOut);
+void DeinitFFT();
+
+#endif
+