summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-11 08:50:48 -0700
committerChris Robinson <[email protected]>2011-09-11 08:50:48 -0700
commit8028770901f4da6632fdb567ff45fbf7f86f4f6f (patch)
tree2fd35380b9f82a9c6069d2bf1504ef850e5f9fe6 /Alc
parentd51b93f8697ef562f09c843df31aaeb773d3caff (diff)
Avoid accessing EAX-only reverb properties for non-EAX updates
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcReverb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c
index 84cda102..562587e6 100644
--- a/Alc/alcReverb.c
+++ b/Alc/alcReverb.c
@@ -1113,7 +1113,8 @@ static ALvoid ReverbUpdate(ALeffectState *effect, ALCcontext *Context, const ALe
}
// Calculate the master low-pass filter (from the master effect HF gain).
- cw = CalcI3DL2HFreq(Slot->effect.Reverb.HFReference, frequency);
+ if(isEAX) cw = CalcI3DL2HFreq(Slot->effect.Reverb.HFReference, frequency);
+ else cw = CalcI3DL2HFreq(LOWPASSFREQCUTOFF, frequency);
// This is done with 2 chained 1-pole filters, so no need to square g.
State->LpFilter.coeff = lpCoeffCalc(Slot->effect.Reverb.GainHF, cw);