Use the correct send slot when mixing

This commit is contained in:
Chris Robinson
2011-07-11 22:32:27 -07:00
parent e56e462317
commit 2a7bf1234b
+2 -2
View File
@@ -168,7 +168,7 @@ static void Mix_Hrtf_##T##_##sampler(ALsource *Source, ALCdevice *Device, \
\
for(out = 0;out < Device->NumAuxSends;out++) \
{ \
ALeffectslot *Slot = Source->Params.Send[i].Slot; \
ALeffectslot *Slot = Source->Params.Send[out].Slot; \
ALfloat WetSend; \
ALfloat *RESTRICT WetBuffer; \
ALfloat *RESTRICT WetClickRemoval; \
@@ -308,7 +308,7 @@ static void Mix_##T##_##sampler(ALsource *Source, ALCdevice *Device, \
\
for(out = 0;out < Device->NumAuxSends;out++) \
{ \
ALeffectslot *Slot = Source->Params.Send[i].Slot; \
ALeffectslot *Slot = Source->Params.Send[out].Slot; \
ALfloat WetSend; \
ALfloat *WetBuffer; \
ALfloat *WetClickRemoval; \