Mercurial > hg > lowfreq
diff LowFreq.h @ 4:9867e53a2592
Many fixes to buffering, etc
author | Chris Cannam |
---|---|
date | Fri, 07 Mar 2014 14:17:47 +0000 |
parents | a84bae4ee627 |
children | bf742ae09443 |
line wrap: on
line diff
--- a/LowFreq.h Fri Mar 07 08:29:01 2014 +0000 +++ b/LowFreq.h Fri Mar 07 14:17:47 2014 +0000 @@ -3,6 +3,8 @@ #include <vamp-sdk/Plugin.h> +#include "base/Window.h" + using std::string; class Resampler; @@ -47,14 +49,20 @@ protected: Feature processColumn(); + void advance(); + + int getTargetSampleRate() const; + int getTargetStepSize() const; float m_p; int m_n; + float m_overlap; int m_blockSize; Resampler *m_resampler; FFT *m_fft; + Window<double> *m_window; std::vector<double> m_buffer; };