ASPiK SDK
|
The Interpolator object implements a sample rate interpolator. One input sample yields N output samples. More...
#include <fxobjects.h>
Public Member Functions | |
void | initialize (unsigned int _FIRLength, rateConversionRatio _ratio, unsigned int _sampleRate, bool _polyphase=true) |
InterpolatorOutput | interpolateAudio (double xn) |
Protected Attributes | |
FastConvolver | convolver |
the convolver | |
unsigned int | sampleRate = 44100 |
sample rate | |
unsigned int | FIRLength = 256 |
FIR length. | |
rateConversionRatio | ratio = rateConversionRatio::k2x |
conversion ration | |
bool | polyphase = true |
enable polyphase decomposition | |
FastConvolver | polyPhaseConvolvers [maxSamplingRatio] |
a set of sub-band convolvers for polyphase operation | |
The Interpolator object implements a sample rate interpolator. One input sample yields N output samples.
Audio I/O:
Control I/F:
|
inline |
setup the sample rate interpolator
_FIRLength | the interpolator's anti-aliasing filter length |
_ratio | the conversion ratio (see rateConversionRatio) |
_sampleRate | the actual sample rate |
_polyphase | flag to enable polyphase decomposition |
|
inline |
perform the interpolation; the multiple outputs are in an array in the return structure