From 5f3c07ca3b99ac2f555c7e49dbfcb479ed0a6df8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Nov 2009 10:29:10 -0800 Subject: Apply the reverb room rolloff factor for EAX reverb too --- Alc/ALu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/ALu.c b/Alc/ALu.c index 8f3056b9..21373fb2 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -547,7 +547,8 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, ALsource *ALSource, RoomRolloff[i] = ALSource->RoomRolloffFactor; if(ALSource->Send[i].Slot && - ALSource->Send[i].Slot->effect.type == AL_EFFECT_REVERB) + (ALSource->Send[i].Slot->effect.type == AL_EFFECT_REVERB || + ALSource->Send[i].Slot->effect.type == AL_EFFECT_EAXREVERB)) RoomRolloff[i] += ALSource->Send[i].Slot->effect.Reverb.RoomRolloffFactor; } -- cgit v1.2.3