Mercurial > hg > decimation
diff garage-resampler/Resampler.h @ 16:66abf86c864d
Add bandwidth, snr parameters
author | Chris Cannam |
---|---|
date | Fri, 18 Oct 2013 14:57:48 +0100 |
parents | 94c1cadc6caf |
children |
line wrap: on
line diff
--- a/garage-resampler/Resampler.h Fri Oct 18 13:08:00 2013 +0100 +++ b/garage-resampler/Resampler.h Fri Oct 18 14:57:48 2013 +0100 @@ -13,6 +13,14 @@ * targetRate. */ Resampler(int sourceRate, int targetRate); + + /** + * Construct a Resampler to resample from sourceRate to + * targetRate, using the given filter parameters. + */ + Resampler(int sourceRate, int targetRate, + double snr, double bandwidth); + virtual ~Resampler(); /** @@ -57,7 +65,7 @@ std::vector<double> m_buffer; int m_bufferOrigin; - void initialise(); + void initialise(double, double); double reconstructOne(); };