Clamp gain of multichannel sources

This commit is contained in:
Chris Robinson 2009-02-10 15:15:49 -08:00
parent 0fcefd865b
commit 8348d719cd

View File

@ -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)
{