You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
608B

  1. #include "ffft/FFTRealFixLen.h"
  2. #include "buffer.hpp"
  3. #include "analyzer.hpp"
  4. using namespace bogaudio::dsp;
  5. typedef ffft::FFTRealFixLen<10> FIXED_FFT1024;
  6. FFT1024::FFT1024() {
  7. _fft = new FIXED_FFT1024();
  8. }
  9. FFT1024::~FFT1024() {
  10. delete (FIXED_FFT1024*)_fft;
  11. }
  12. void FFT1024::do_fft(float* out, float* in) {
  13. ((FIXED_FFT1024*)_fft)->do_fft(out, in);
  14. }
  15. typedef ffft::FFTRealFixLen<12> FIXED_FFT4096;
  16. FFT4096::FFT4096() {
  17. _fft = new FIXED_FFT4096();
  18. }
  19. FFT4096::~FFT4096() {
  20. delete (FIXED_FFT4096*)_fft;
  21. }
  22. void FFT4096::do_fft(float* out, float* in) {
  23. ((FIXED_FFT4096*)_fft)->do_fft(out, in);
  24. }