filter_resample
Rythm adapter, with arbitrary ratio.
Namespace: dsp::filter
Prototype
sptr<FilterGen<T>> filter_resample(float ratio)
Parameters
ratio | Decimation or interpolation ratio (ratio between the output and input sample frequencies). |
Description
This function returns a filter block for resampling, enabling to change the sampling rate of a streaming signal. The implementation is based on a cascad of half-band decimators (if ratio is less than 1) or interpolators (if the ratio is greater than 1), followed by an arbitrary rate interpolator.