summaryrefslogtreecommitdiff
path: root/tests/test5/fft.h
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-06 21:42:40 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-06 21:42:40 +0000
commit438cfc61ee3fae8875dbbf24a44fa7d75969f2b3 (patch)
treecae20abd8ebd251dc972886340d74a1763ca94ae /tests/test5/fft.h
parent5b385abef33b20c122bddf9cc9e947594e0ebd32 (diff)
download2012-violon-leds-438cfc61ee3fae8875dbbf24a44fa7d75969f2b3.tar.gz
2012-violon-leds-438cfc61ee3fae8875dbbf24a44fa7d75969f2b3.tar.bz2
2012-violon-leds-438cfc61ee3fae8875dbbf24a44fa7d75969f2b3.zip
Ajout Makefile, résolution crash malloc (tableau statique à la place).
Données audio 2 channels : apparament avec un offset style [i*nchan] on obtient bcp de valeurs à 0... FFT : valeurs en sortie toutes pétées, faut débugguer. Conso CPU : correcte git-svn-id: file:///var/svn/2012-violon-leds/trunk@13 6be1fa4d-33ac-4c33-becc-79fcb3794bb6
Diffstat (limited to 'tests/test5/fft.h')
-rw-r--r--tests/test5/fft.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test5/fft.h b/tests/test5/fft.h
new file mode 100644
index 0000000..7f2f0de
--- /dev/null
+++ b/tests/test5/fft.h
@@ -0,0 +1,14 @@
+#ifndef FFT_H
+#define FFT_H
+
+#include <gtk/gtk.h>
+
+void FFT(int NumSamples, gboolean InverseTransform,
+ float *RealIn, float *ImagIn, float *RealOut, float *ImagOut);
+void InitFFT();
+int NumberOfBitsNeeded(int PowerOfTwo);
+inline int FastReverseBits(int i, int NumBits);
+int ReverseBits(int index, int NumBits);
+
+#endif
+