diff options
author | Chris Robinson <[email protected]> | 2011-07-05 14:00:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-05 14:00:11 -0700 |
commit | 21574f7e16d8ff2826b32cf11086e5c7dbac7c30 (patch) | |
tree | 02d7d6853b82857b83e6ebe51f65d1a76804904d /Alc/ALu.c | |
parent | 0903a7f1e056079541a40f5d6dfb27756b3e883b (diff) |
Scale the WetGain parameter directly instead of on each application
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -323,7 +323,8 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } } for(i = 0;i < NumSends;i++) - ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain; + ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain / + ALSource->NumChannels; /* Update filter coefficients. Calculations based on the I3DL2 * spec. */ |