mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-11-30 23:57:16 +01:00
24 lines
422 B
C++
24 lines
422 B
C++
#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();
|
|
};
|
|
|