11 #ifndef FILTERS_H_INCLUDED
12 #define FILTERS_H_INCLUDED
15 #include "../headers/enums.hpp"
26 virtual AUDIOBUFFER & operator()(AUDIOBUFFER & in) = 0;
35 aFlt ff1, ff2, ff3, fb1, fb2;
45 AUDIOBUFFER & operator()(AUDIOBUFFER & in);
54 AUDIOBUFFER & operator()(AUDIOBUFFER & in);
65 AUDIOBUFFER & operator()(AUDIOBUFFER & in);
70 static float qCos(Flt omega);
78 biQuad& set(BQ_TYPE type, Flt frequency, Flt Q, Flt peakGain = 4);
79 biQuad& setType(BQ_TYPE type);
80 biQuad& setFreq(Flt frequency);
82 biQuad& setPeak(Flt peakGain);
85 biQuad& setRaw(Flt fb1, Flt fb2, Flt ff1, Flt ff2, Flt ff3);
86 AUDIOBUFFER & operator()(AUDIOBUFFER & in);
98 AUDIOBUFFER & operator()(AUDIOBUFFER & in, AUDIOBUFFER & signal);
103 aFlt lastIn, lastOut;
117 #endif // FILTERS_H_INCLUDED