Filter: added reset method on vector filters
This commit is contained in:
parent
fc7cdc1266
commit
5b7f2a3de3
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user