diff options
author | Chris Robinson <[email protected]> | 2009-02-10 15:15:49 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-02-10 15:15:49 -0800 |
commit | 8348d719cd400be949da457dac86942e3c327c96 (patch) | |
tree | af7f7d9b369cf8ad6298dac08a2b41e7821524f5 | |
parent | 0fcefd865bfe17ba184fae7534adc168b93ea0bc (diff) |
Clamp gain of multichannel sources
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -878,6 +878,8 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, pitch[0] = ALSource->flPitch; DryMix = SourceVolume; + DryMix = __min(DryMix,MaxVolume); + DryMix = __max(DryMix,MinVolume); switch(ALSource->DirectFilter.type) { |