aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-05-21 03:31:44 -0700
committerChris Robinson <[email protected]>2017-05-21 03:31:44 -0700
commit5691dceb38d7dfa6159c9c9b5358d094acc7e8a4 (patch)
tree063eb7a6ac469c6e1c8354f1be96a2503b697f7c /Alc/effects/reverb.c
parentedcdc1dae85246b8ae633d112cfd7dda93fdc8c9 (diff)
Add a method to copy a filter's coefficients
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r--Alc/effects/reverb.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 2c881512..f5d32d93 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -1336,17 +1336,8 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCdevice *Device
gainlf, lfScale, calc_rcpQ_from_slope(gainlf, 1.0f));
for(i = 1;i < 4;i++)
{
- State->Filter[i].Lp.b0 = State->Filter[0].Lp.b0;
- State->Filter[i].Lp.b1 = State->Filter[0].Lp.b1;
- State->Filter[i].Lp.b2 = State->Filter[0].Lp.b2;
- State->Filter[i].Lp.a1 = State->Filter[0].Lp.a1;
- State->Filter[i].Lp.a2 = State->Filter[0].Lp.a2;
-
- State->Filter[i].Hp.b0 = State->Filter[0].Hp.b0;
- State->Filter[i].Hp.b1 = State->Filter[0].Hp.b1;
- State->Filter[i].Hp.b2 = State->Filter[0].Hp.b2;
- State->Filter[i].Hp.a1 = State->Filter[0].Hp.a1;
- State->Filter[i].Hp.a2 = State->Filter[0].Hp.a2;
+ ALfilterState_copyParams(&State->Filter[i].Lp, &State->Filter[0].Lp);
+ ALfilterState_copyParams(&State->Filter[i].Hp, &State->Filter[0].Hp);
}
/* Update the main effect delay and associated taps. */