diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2018-11-19 09:10:36 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2018-11-19 09:10:36 -0800 |
commit | 387a34ca002bdc25cc31fb8514c0fa2e44af6e1b (patch) | |
tree | 268ac0fff88d694d90502072e6fce2b38c831e10 /Alc/alu.cpp | |
parent | 07386e79de93988faccc98166a036b6234ff9fe1 (diff) |
Clean up the biquad filter a bit
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r-- | Alc/alu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp index b4b34e5f..e30f6a2e 100644 --- a/Alc/alu.cpp +++ b/Alc/alu.cpp @@ -973,11 +973,11 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALflo if(gainHF != 1.0f) voice->Direct.FilterType |= AF_LowPass; if(gainLF != 1.0f) voice->Direct.FilterType |= AF_HighPass; BiquadFilter_setParams( - &voice->Direct.Params[0].LowPass, BiquadType_HighShelf, + &voice->Direct.Params[0].LowPass, BiquadType::HighShelf, gainHF, hfScale, calc_rcpQ_from_slope(gainHF, 1.0f) ); BiquadFilter_setParams( - &voice->Direct.Params[0].HighPass, BiquadType_LowShelf, + &voice->Direct.Params[0].HighPass, BiquadType::LowShelf, gainLF, lfScale, calc_rcpQ_from_slope(gainLF, 1.0f) ); for(c = 1;c < num_channels;c++) @@ -999,11 +999,11 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALflo if(gainHF != 1.0f) voice->Send[i].FilterType |= AF_LowPass; if(gainLF != 1.0f) voice->Send[i].FilterType |= AF_HighPass; BiquadFilter_setParams( - &voice->Send[i].Params[0].LowPass, BiquadType_HighShelf, + &voice->Send[i].Params[0].LowPass, BiquadType::HighShelf, gainHF, hfScale, calc_rcpQ_from_slope(gainHF, 1.0f) ); BiquadFilter_setParams( - &voice->Send[i].Params[0].HighPass, BiquadType_LowShelf, + &voice->Send[i].Params[0].HighPass, BiquadType::LowShelf, gainLF, lfScale, calc_rcpQ_from_slope(gainLF, 1.0f) ); for(c = 1;c < num_channels;c++) |