summaryrefslogtreecommitdiff
path: root/tests/test6/fft.h
blob: 6066d52aa6a058be89b79e891cf841efdf5597b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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