diff options
author | Chris Robinson <[email protected]> | 2007-12-17 22:42:38 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-17 22:42:38 -0800 |
commit | 168d8e3beee5f809f79f6d0067cd51e25ba65295 (patch) | |
tree | 6015887ebc558845f681206dc26d59931f19acf6 /Alc | |
parent | 654788f2cf0bc9bf4fe5ee7a1ef61fd3e7b2b650 (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.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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: |