From 797149c5a9ee0c7c70947f72cbaece5efd3dd687 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 16 Jun 2012 22:29:33 +0000 Subject: Création du source tree princpal. Les routines de maths pour calculer le gain déconnent encore je trouve. Reste à intégrer la partie DMX et a améliorer tout ce qui a été laissé de côté... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-violon-leds/trunk@20 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- src/fft.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/fft.h (limited to 'src/fft.h') 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 + -- cgit v1.2.3