aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-04-04 18:07:46 -0700
committerChris Robinson <[email protected]>2018-04-04 18:07:46 -0700
commit9c5307a48a58959a564be1999b119a87b7cdb8e0 (patch)
tree84842432f646d1ce059ba67293b4edd0fc0bd798 /Alc/effects/reverb.c
parentb1fe40586192dc15f92d0476c85e9f9daa2a31f0 (diff)
Rename BiquadState to BiquadFilter
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r--Alc/effects/reverb.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 831e4a3a..9fc65a48 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -289,8 +289,8 @@ typedef struct ALreverbState {
/* Master effect filters */
struct {
- BiquadState Lp;
- BiquadState Hp;
+ BiquadFilter Lp;
+ BiquadFilter Hp;
} Filter[NUM_LINES];
/* Core delay line (early reflections and late reverb tap from this). */
@@ -347,8 +347,8 @@ static void ALreverbState_Construct(ALreverbState *state)
for(i = 0;i < NUM_LINES;i++)
{
- BiquadState_clear(&state->Filter[i].Lp);
- BiquadState_clear(&state->Filter[i].Hp);
+ BiquadFilter_clear(&state->Filter[i].Lp);
+ BiquadFilter_clear(&state->Filter[i].Hp);
}
state->Delay.Mask = 0;
@@ -1156,16 +1156,16 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCcontext *Conte
* killing most of the signal.
*/
gainhf = maxf(props->Reverb.GainHF, 0.001f);
- BiquadState_setParams(&State->Filter[0].Lp, BiquadType_HighShelf, gainhf, hf0norm,
- calc_rcpQ_from_slope(gainhf, 1.0f));
+ BiquadFilter_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);
- BiquadState_setParams(&State->Filter[0].Hp, BiquadType_LowShelf, gainlf, lf0norm,
- calc_rcpQ_from_slope(gainlf, 1.0f));
+ BiquadFilter_setParams(&State->Filter[0].Hp, BiquadType_LowShelf, gainlf, lf0norm,
+ calc_rcpQ_from_slope(gainlf, 1.0f));
for(i = 1;i < NUM_LINES;i++)
{
- BiquadState_copyParams(&State->Filter[i].Lp, &State->Filter[0].Lp);
- BiquadState_copyParams(&State->Filter[i].Hp, &State->Filter[0].Hp);
+ BiquadFilter_copyParams(&State->Filter[i].Lp, &State->Filter[0].Lp);
+ BiquadFilter_copyParams(&State->Filter[i].Hp, &State->Filter[0].Hp);
}
/* Update the main effect delay and associated taps. */
@@ -1547,8 +1547,8 @@ static ALvoid ALreverbState_process(ALreverbState *State, ALsizei SamplesToDo, c
/* Band-pass the incoming samples. Use the early output lines for
* temp storage.
*/
- BiquadState_process(&State->Filter[c].Lp, early[0], afmt[c], todo);
- BiquadState_process(&State->Filter[c].Hp, early[1], early[0], todo);
+ BiquadFilter_process(&State->Filter[c].Lp, early[0], afmt[c], todo);
+ BiquadFilter_process(&State->Filter[c].Hp, early[1], early[0], todo);
/* Feed the initial delay line. */
DelayLineIn(&State->Delay, State->Offset, c, early[1], todo);