aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-04-12 07:25:18 -0700
committerChris Robinson <[email protected]>2008-04-12 07:25:18 -0700
commit49d9695ad95ccbe7f46f3c23c8791e8512f5faa9 (patch)
tree3392ca1e1b1497f4f9cbe9ac9f28bea6a11251fc
parente15bc6b9bad79ef79bf68bc59ecc14e1b7221141 (diff)
Check the right struct member for the filter type
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 609faa9d..a7817ae3 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -428,7 +428,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
aluMatrixVector(Position, Matrix);
//6. Apply filter gains and filters
- switch(ALSource->DirectFilter.filter)
+ switch(ALSource->DirectFilter.type)
{
case AL_FILTER_LOWPASS:
DryMix *= ALSource->DirectFilter.Gain;
@@ -436,7 +436,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
break;
}
- switch(ALSource->Send[0].WetFilter.filter)
+ switch(ALSource->Send[0].WetFilter.type)
{
case AL_FILTER_LOWPASS:
WetMix *= ALSource->Send[0].WetFilter.Gain;