aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-17 22:42:38 -0800
committerChris Robinson <[email protected]>2007-12-17 22:42:38 -0800
commit168d8e3beee5f809f79f6d0067cd51e25ba65295 (patch)
tree6015887ebc558845f681206dc26d59931f19acf6 /Alc
parent654788f2cf0bc9bf4fe5ee7a1ef61fd3e7b2b650 (diff)
Add AL_FILTER_LOWPASS support
Direct filters only, since auxiliary sends and slots aren't available yet
Diffstat (limited to 'Alc')
-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: