Mercurial > hg > qm-dsp
diff dsp/rateconversion/Decimator.h @ 22:f7edcd9138bd
* Add decimation filter for 8x decimation
author | cannam |
---|---|
date | Thu, 10 Jan 2008 15:14:11 +0000 |
parents | d7116e3183f8 |
children | 5bec06ecc88a |
line wrap: on
line diff
--- a/dsp/rateconversion/Decimator.h Thu Jan 10 15:13:48 2008 +0000 +++ b/dsp/rateconversion/Decimator.h Thu Jan 10 15:14:11 2008 +0000 @@ -13,12 +13,15 @@ class Decimator { public: - void process( double* src, double* dst ); - void doAntiAlias( double* src, double* dst, unsigned int length ); + void process( const double* src, double* dst ); + void doAntiAlias( const double* src, double* dst, unsigned int length ); Decimator( unsigned int inLength, unsigned int decFactor ); virtual ~Decimator(); + int getFactor() const { return m_decFactor; } + static int getHighestSupportedFactor() { return 8; } + private: void resetFilter(); void deInitialise();