diff options
author | Chris Robinson <[email protected]> | 2008-04-12 07:25:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-04-12 07:25:18 -0700 |
commit | 49d9695ad95ccbe7f46f3c23c8791e8512f5faa9 (patch) | |
tree | 3392ca1e1b1497f4f9cbe9ac9f28bea6a11251fc | |
parent | e15bc6b9bad79ef79bf68bc59ecc14e1b7221141 (diff) |
Check the right struct member for the filter type
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |