diff options
author | Chris Robinson <[email protected]> | 2010-11-24 10:01:50 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-24 10:01:50 -0800 |
commit | 6ab22e7cbbe7a1b24653b3e4677d01247a7030c2 (patch) | |
tree | 461a1edb263edc1e584d3c6120b4b47a32d852ec /Alc/ALu.c | |
parent | bb13f7f23416bc2d12c2ac9ee7ab143aef01e970 (diff) |
Reorder some stored source params
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -230,7 +230,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) break; } - ALSource->Params.WetGains[i] = WetGain[i] * ListenerGain; + ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain; } /* Update filter coefficients. Calculations based on the I3DL2 @@ -494,7 +494,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) if(!Slot || Slot->effect.type == AL_EFFECT_NULL) { - ALSource->Params.WetGains[i] = 0.0f; + ALSource->Params.Send[i].WetGain = 0.0f; WetGainHF[i] = 1.0f; continue; } @@ -544,7 +544,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) WetGainHF[i] *= ALSource->Send[i].WetFilter.GainHF; break; } - ALSource->Params.WetGains[i] = WetGain[i] * ListenerGain; + ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain; } // Apply filter gains and filters |