diff options
author | Chris Robinson <[email protected]> | 2018-03-23 14:52:59 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-23 14:52:59 -0700 |
commit | 6990478369e76a55aa27bebceb45db081fe8144e (patch) | |
tree | 0283f2b57eaea6d96b68dd0faad781c21c061145 /Alc/effects/reverb.c | |
parent | e37634e908c7563e6281997d50800a2f9633d8d2 (diff) |
Rename ALfilterState/Type to BiquadState/Type
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r-- | Alc/effects/reverb.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index cd38b492..3c5e5e96 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -291,8 +291,8 @@ typedef struct ALreverbState { /* Master effect filters */ struct { - ALfilterState Lp; - ALfilterState Hp; + BiquadState Lp; + BiquadState Hp; } Filter[NUM_LINES]; /* Core delay line (early reflections and late reverb tap from this). */ @@ -349,8 +349,8 @@ static void ALreverbState_Construct(ALreverbState *state) for(i = 0;i < NUM_LINES;i++) { - ALfilterState_clear(&state->Filter[i].Lp); - ALfilterState_clear(&state->Filter[i].Hp); + BiquadState_clear(&state->Filter[i].Lp); + BiquadState_clear(&state->Filter[i].Hp); } state->Delay.Mask = 0; @@ -1160,16 +1160,16 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCcontext *Conte * killing most of the signal. */ gainhf = maxf(props->Reverb.GainHF, 0.001f); - ALfilterState_setParams(&State->Filter[0].Lp, ALfilterType_HighShelf, - gainhf, hf0norm, calc_rcpQ_from_slope(gainhf, 1.0f)); + BiquadState_setParams(&State->Filter[0].Lp, BiquadType_HighShelf, gainhf, hf0norm, + calc_rcpQ_from_slope(gainhf, 1.0f)); lf0norm = props->Reverb.LFReference / frequency; gainlf = maxf(props->Reverb.GainLF, 0.001f); - ALfilterState_setParams(&State->Filter[0].Hp, ALfilterType_LowShelf, - gainlf, lf0norm, calc_rcpQ_from_slope(gainlf, 1.0f)); + BiquadState_setParams(&State->Filter[0].Hp, BiquadType_LowShelf, gainlf, lf0norm, + calc_rcpQ_from_slope(gainlf, 1.0f)); for(i = 1;i < NUM_LINES;i++) { - ALfilterState_copyParams(&State->Filter[i].Lp, &State->Filter[0].Lp); - ALfilterState_copyParams(&State->Filter[i].Hp, &State->Filter[0].Hp); + BiquadState_copyParams(&State->Filter[i].Lp, &State->Filter[0].Lp); + BiquadState_copyParams(&State->Filter[i].Hp, &State->Filter[0].Hp); } /* Update the main effect delay and associated taps. */ @@ -1552,8 +1552,8 @@ static ALvoid ALreverbState_process(ALreverbState *State, ALsizei SamplesToDo, c /* Band-pass the incoming samples. Use the early output lines for * temp storage. */ - ALfilterState_process(&State->Filter[c].Lp, early[0], afmt[c], todo); - ALfilterState_process(&State->Filter[c].Hp, early[1], early[0], todo); + BiquadState_process(&State->Filter[c].Lp, early[0], afmt[c], todo); + BiquadState_process(&State->Filter[c].Hp, early[1], early[0], todo); /* Feed the initial delay line. */ DelayLineIn(&State->Delay, State->Offset, c, early[1], todo); |