mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2025-06-08 02:29:40 +08:00
33 lines
451 B
C++
33 lines
451 B
C++
//
|
|
// Created by mart on 7/27/21.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
|
enum FilterType {
|
|
LOWPASS,
|
|
HIGHPASS,
|
|
BANDPASS,
|
|
BANDSTOP,
|
|
ALLPASS,
|
|
PEAK,
|
|
LOWSHELF,
|
|
HIGHSHELF
|
|
};
|
|
|
|
|
|
class MultiBiquad {
|
|
public:
|
|
MultiBiquad();
|
|
|
|
float ProcessSample(float sample);
|
|
void RefreshFilter(FilterType type, float gainAmp, float freq, float samplerate, float qFactor, bool param_7);
|
|
|
|
float y_2, y_1, x_2, x_1;
|
|
float b0, b1, b2, a1, a2;
|
|
};
|
|
|
|
|
|
|