From 8028770901f4da6632fdb567ff45fbf7f86f4f6f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 11 Sep 2011 08:50:48 -0700 Subject: [PATCH] Avoid accessing EAX-only reverb properties for non-EAX updates --- Alc/alcReverb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);