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/nsutil/fft.h | |
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/nsutil/fft.h')
-rw-r--r-- | Src/nsutil/fft.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Src/nsutil/fft.h b/Src/nsutil/fft.h new file mode 100644 index 00000000..385a19f0 --- /dev/null +++ b/Src/nsutil/fft.h @@ -0,0 +1,30 @@ +#pragma once +#pragma once +#include <bfc/platform/types.h> +#include <bfc/platform/export.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef NSUTIL_EXPORTS +#define NSUTIL_EXPORT __declspec(dllexport) +#else +#define NSUTIL_EXPORT __declspec(dllimport) +#endif + + enum + { + nsutil_fft_none = 0, + nsutil_fft_fast = 1, + nsutil_fft_accurate = 2, + }; + +typedef void *nsutil_fft_t; +NSUTIL_EXPORT int nsutil_fft_Create_F32R(nsutil_fft_t *fft, int order, int accuracy); +NSUTIL_EXPORT int nsutil_fft_Forward_F32R_IP(nsutil_fft_t fft, float *signal); +NSUTIL_EXPORT int nsutil_fft_Destroy_F32R(nsutil_fft_t *fft); + +#ifdef __cplusplus +} +#endif
\ No newline at end of file |