diff options
Diffstat (limited to 'intern/audaspace/FX/AUD_LowpassCalculator.h')
-rw-r--r-- | intern/audaspace/FX/AUD_LowpassCalculator.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/intern/audaspace/FX/AUD_LowpassCalculator.h b/intern/audaspace/FX/AUD_LowpassCalculator.h new file mode 100644 index 00000000000..18bb11feda7 --- /dev/null +++ b/intern/audaspace/FX/AUD_LowpassCalculator.h @@ -0,0 +1,25 @@ +#ifndef AUD_LOWPASSCALCULATOR_H +#define AUD_LOWPASSCALCULATOR_H + +#include "AUD_IDynamicIIRFilterCalculator.h" + +class AUD_LowpassCalculator : public AUD_IDynamicIIRFilterCalculator +{ +private: + /** + * The cutoff frequency. + */ + const float m_frequency; + + /** + * The Q factor. + */ + const float m_Q; + +public: + AUD_LowpassCalculator(float frequency, float Q); + + virtual void recalculateCoefficients(AUD_SampleRate rate, std::vector<float> &b, std::vector<float> &a); +}; + +#endif // AUD_LOWPASSCALCULATOR_H |