Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
30
Src/Winamp/FFT.cpp
Normal file
30
Src/Winamp/FFT.cpp
Normal file
|
@ -0,0 +1,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);
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue