aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/benskiQ/EqBand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Winamp/benskiQ/EqBand.h')
-rw-r--r--Src/Winamp/benskiQ/EqBand.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Src/Winamp/benskiQ/EqBand.h b/Src/Winamp/benskiQ/EqBand.h
new file mode 100644
index 00000000..53f1c9ce
--- /dev/null
+++ b/Src/Winamp/benskiQ/EqBand.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "Biquad.h"
+
+class EqBand
+{
+public:
+ EqBand();
+ void set_num_channels(int num_channels);
+ void SetSampleRate(double sample_freq);
+ void set_parameters(double freq, double gain, double q);
+ void process(float ** const out, float ** in, long nbr_spl, int nbr_chn);
+
+private:
+ double sampleRate, centerFrequency, gain;
+ double _q;
+ int nch;
+ Biquad *channels;
+ bool bypass;
+
+ void clear_buffers();
+};
+