Filter: added reset method on vector filters

This commit is contained in:
Andrew Tridgell 2015-11-21 17:55:26 +11:00
parent fc7cdc1266
commit 5b7f2a3de3
2 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,11 @@ T LowPassFilter2p<T>::apply(const T &sample) {
return _filter.apply(sample, _params);
}
template <class T>
void LowPassFilter2p<T>::reset(void) {
return _filter.reset();
}
/*
* Make an instances
* Otherwise we have to move the constructor implementations to the header file :P

View File

@ -62,6 +62,7 @@ public:
float get_cutoff_freq(void) const;
float get_sample_freq(void) const;
T apply(const T &sample);
void reset(void);
protected:
struct DigitalBiquadFilter<T>::biquad_params _params;