aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-11-19 10:29:10 -0800
committerChris Robinson <[email protected]>2009-11-19 10:29:10 -0800
commit5f3c07ca3b99ac2f555c7e49dbfcb479ed0a6df8 (patch)
tree1d38ea5eb1cc1384cb2ac19fb6be222c2ed38f0d /Alc
parent8d1da6a8ca48469a10614c33e0eadc7e7f1d4f13 (diff)
Apply the reverb room rolloff factor for EAX reverb too
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c3
1 files changed, 2 insertions, 1 deletions
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;
}