Mercurial > hg > qm-dsp
diff dsp/rateconversion/Resampler.h @ 374:3e5f13ac984f
Add bandwidth, snr parameters
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 18 Oct 2013 14:57:48 +0100 |
parents | 50d393750cfd |
children | 23558405a7d1 |
line wrap: on
line diff
--- a/dsp/rateconversion/Resampler.h Fri Oct 18 11:11:41 2013 +0100 +++ b/dsp/rateconversion/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(); };