Mercurial > hg > qm-dsp
diff dsp/rateconversion/Resampler.h @ 160:0a47ec0a1a56
Add std::vector-returning process call
author | Chris Cannam |
---|---|
date | Tue, 05 Nov 2013 16:36:53 +0000 |
parents | edb86e0d850c |
children | cc51baf8e37e |
line wrap: on
line diff
--- a/dsp/rateconversion/Resampler.h Fri Nov 01 17:11:50 2013 +0000 +++ b/dsp/rateconversion/Resampler.h Tue Nov 05 16:36:53 2013 +0000 @@ -55,6 +55,12 @@ int process(const double *src, double *dst, int n); /** + * Read n input samples from src and return resampled data by + * value. + */ + std::vector<double> process(const double *src, int n); + + /** * Return the number of samples of latency at the output due by * the filter. (That is, the output will be delayed by this number * of samples relative to the input.)