From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Winamp/benskiQ/EqBand.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Src/Winamp/benskiQ/EqBand.h (limited to 'Src/Winamp/benskiQ/EqBand.h') 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(); +}; + -- cgit