aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 23367e00..7397af8f 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -369,10 +369,19 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
PanningFB = 0.5f;
}
+ //7. Apply filter gains and filters
+ switch(ALSource->DirectFilter.filter)
+ {
+ case AL_FILTER_LOWPASS:
+ DryMix *= ALSource->DirectFilter.Gain;
+ DryGainHF *= ALSource->DirectFilter.GainHF;
+ break;
+ }
+
*drygainhf = DryGainHF;
*wetgainhf = WetGainHF;
- //7. Convert pannings into channel volumes
+ //8. Convert pannings into channel volumes
switch(OutputFormat)
{
case AL_FORMAT_MONO8: