diff options
author | Chris Robinson <[email protected]> | 2018-01-14 07:33:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-14 07:33:53 -0800 |
commit | 6f532fa0e5a42354d423db1f4d2e034769eacc0f (patch) | |
tree | c78c3ca3f7474868b9415a315ff1a6c78a4ee088 /Alc/effects/reverb.c | |
parent | 25b3ed3532eeb1a41a0e99d348f28a476c948977 (diff) |
Don't check the modulation depth for changes multiple times
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r-- | Alc/effects/reverb.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 206362a2..a024a5ac 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -1341,18 +1341,19 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCcontext *Conte /* Determine if delay-line cross-fading is required. */ for(i = 0;i < NUM_LINES;i++) { - if((State->EarlyDelayTap[i][1] != State->EarlyDelayTap[i][0]) || - (State->Early.VecAp.Offset[i][1] != State->Early.VecAp.Offset[i][0]) || - (State->Early.Offset[i][1] != State->Early.Offset[i][0]) || - (State->LateDelayTap[i][1] != State->LateDelayTap[i][0]) || - (State->Late.VecAp.Offset[i][1] != State->Late.VecAp.Offset[i][0]) || - (State->Late.Offset[i][1] != State->Late.Offset[i][0]) || - (State->Mod.Depth[1] != State->Mod.Depth[0])) + if(State->EarlyDelayTap[i][1] != State->EarlyDelayTap[i][0] || + State->Early.VecAp.Offset[i][1] != State->Early.VecAp.Offset[i][0] || + State->Early.Offset[i][1] != State->Early.Offset[i][0] || + State->LateDelayTap[i][1] != State->LateDelayTap[i][0] || + State->Late.VecAp.Offset[i][1] != State->Late.VecAp.Offset[i][0] || + State->Late.Offset[i][1] != State->Late.Offset[i][0]) { State->FadeCount = 0; break; } } + if(State->Mod.Depth[1] != State->Mod.Depth[0]) + State->FadeCount = 0; } |