123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef __NULLSOFT_DX9_PLUGIN_SHELL_FFT_H__
- #define __NULLSOFT_DX9_PLUGIN_SHELL_FFT_H__ 1
- class FFT
- {
- public:
- FFT();
- ~FFT();
- void Init(int samples_in, int samples_out, int bEqualize=1, float envelope_power=1.0f);
- void time_to_frequency_domain(float *in_wavedata, float *out_spectraldata);
- int GetNumFreq() { return NFREQ; };
- void CleanUp();
- private:
- int m_ready;
- int m_samples_in;
- int NFREQ;
- void InitEnvelopeTable(float power);
- void InitEqualizeTable();
- void InitBitRevTable();
- void InitCosSinTable();
-
- int *bitrevtable;
- float *envelope;
- float *equalize;
- float *temp1;
- float *temp2;
- float (*cossintable)[2];
- };
- #endif
|