1
0

EqBand.h 422 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "Biquad.h"
  3. class EqBand
  4. {
  5. public:
  6. EqBand();
  7. void set_num_channels(int num_channels);
  8. void SetSampleRate(double sample_freq);
  9. void set_parameters(double freq, double gain, double q);
  10. void process(float ** const out, float ** in, long nbr_spl, int nbr_chn);
  11. private:
  12. double sampleRate, centerFrequency, gain;
  13. double _q;
  14. int nch;
  15. Biquad *channels;
  16. bool bypass;
  17. void clear_buffers();
  18. };