aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/FFT.cpp
blob: 4adf655309324dcabb543a5f85da7b3ff8f10041 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/** (c) Nullsoft, Inc.         C O N F I D E N T I A L
 ** Filename: 
 ** Project:
 ** Description:
 ** Author:
 ** Created:
 **/

#define _USE_MATH_DEFINES
#include <math.h>
#include "main.h"
#include "fft.h"
#include "../nsutil/fft.h"

static nsutil_fft_t fft9;


void fft_init()
{
	if (!fft9)
		nsutil_fft_Create_F32R(&fft9, 9, nsutil_fft_fast);
}

void fft_9(float wave[512])
{
	fft_init(); // getting crash reports of this not being created. strange
	nsutil_fft_Forward_F32R_IP(fft9, wave);
}