comparison dsp/transforms/FFT.cpp @ 30:a251fb0de594

* Make MFCC able to accept already-FFT'd input, and simplify API a bit * Add log power value to MFCC, restore windowing, and avoid some heap allocs * In HMM, bail out of iteration if loglik hits NaN
author cannam
date Fri, 18 Jan 2008 13:24:12 +0000
parents d7116e3183f8
children 7fe29d8a7eaf
comparison
equal deleted inserted replaced
29:1c9c4d2c0592 30:a251fb0de594
22 FFT::~FFT() 22 FFT::~FFT()
23 { 23 {
24 24
25 } 25 }
26 26
27 void FFT::process(unsigned int p_nSamples, bool p_bInverseTransform, double *p_lpRealIn, double *p_lpImagIn, double *p_lpRealOut, double *p_lpImagOut) 27 void FFT::process(unsigned int p_nSamples, bool p_bInverseTransform,
28 const double *p_lpRealIn, const double *p_lpImagIn,
29 double *p_lpRealOut, double *p_lpImagOut)
28 { 30 {
29 31
30 if(!p_lpRealIn || !p_lpRealOut || !p_lpImagOut) return; 32 if(!p_lpRealIn || !p_lpRealOut || !p_lpImagOut) return;
31 33
32 34