Mercurial > hg > qm-dsp
diff dsp/rateconversion/Resampler.h @ 150:23558405a7d1
Integrate resampler and tests into build system etc
author | Chris Cannam |
---|---|
date | Mon, 21 Oct 2013 09:40:22 +0100 |
parents | 734e5fa6f731 |
children | edb86e0d850c |
line wrap: on
line diff
--- a/dsp/rateconversion/Resampler.h Fri Oct 18 14:57:48 2013 +0100 +++ b/dsp/rateconversion/Resampler.h Mon Oct 21 09:40:22 2013 +0100 @@ -1,10 +1,32 @@ /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ +/* + QM DSP Library + + Centre for Digital Music, Queen Mary, University of London. + This file by Chris Cannam. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. See the file + COPYING included with this distribution for more information. +*/ #ifndef RESAMPLER_H #define RESAMPLER_H #include <vector> +/** + * Resampler resamples a stream from one integer sample rate to + * another (arbitrary) rate, using a kaiser-windowed sinc filter. The + * results and performance are pretty similar to libraries such as + * libsamplerate, though this implementation does not support + * time-varying ratios (the ratio is fixed on construction). + * + * See also Decimator, which is faster and rougher but supports only + * power-of-two downsampling factors. + */ class Resampler { public: