ASPiK SDK
|
The Decimator object implements a sample rate decimator. Ana array of M input samples is decimated to one output sample. More...
#include <fxobjects.h>
Public Member Functions | |
void | initialize (unsigned int _FIRLength, rateConversionRatio _ratio, unsigned int _sampleRate, bool _polyphase=true) |
double | decimateAudio (DecimatorInput data) |
Protected Attributes | |
FastConvolver | convolver |
fast 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 Decimator object implements a sample rate decimator. Ana array of M input samples is decimated to one output sample.
Audio I/O:
Control I/F:
|
inline |
decimate audio input samples into one outut sample (return value)
|
inline |
setup the sample rate decimator
_FIRLength | the decimator's anti-aliasing filter length |
_ratio | the conversion ratio (see rateConversionRatio) |
_sampleRate | the actual sample rate |
_polyphase | flag to enable polyphase decomposition |