diff options
author | Chris Robinson <[email protected]> | 2011-07-05 14:14:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-05 14:14:20 -0700 |
commit | 75fa891e0a4d00739a8a0ddd037782f99f22a578 (patch) | |
tree | aca7575098bde2ecb999ef1fd533cb32eb68163e /Alc/ALu.c | |
parent | 21574f7e16d8ff2826b32cf11086e5c7dbac7c30 (diff) |
Store and use the send slot in the source params
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -323,8 +323,11 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } } for(i = 0;i < NumSends;i++) + { + ALSource->Params.Send[i].Slot = ALSource->Send[i].Slot; ALSource->Params.Send[i].WetGain = WetGain[i] * ListenerGain / ALSource->NumChannels; + } /* Update filter coefficients. Calculations based on the I3DL2 * spec. */ @@ -444,6 +447,8 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) WetGainAuto = AL_TRUE; WetGainHFAuto = DryGainHFAuto; } + + ALSource->Params.Send[i].Slot = Slot; } //1. Translate Listener to origin (convert to head relative) |