diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/FFT.cpp | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/FFT.cpp')
-rw-r--r-- | Src/Winamp/FFT.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Src/Winamp/FFT.cpp b/Src/Winamp/FFT.cpp new file mode 100644 index 00000000..4adf6553 --- /dev/null +++ b/Src/Winamp/FFT.cpp @@ -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); +} + + |