From 387a34ca002bdc25cc31fb8514c0fa2e44af6e1b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 19 Nov 2018 09:10:36 -0800 Subject: Clean up the biquad filter a bit --- Alc/alu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/alu.cpp') 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++) -- cgit v1.2.3