diff options
author | Chris Robinson <[email protected]> | 2011-07-11 22:32:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-11 22:32:27 -0700 |
commit | 2a7bf1234bac0ed3f27df9d004be47b7c8a190cb (patch) | |
tree | c217e631f3277a20a3075e5e39ebea19bc6f9d99 | |
parent | e56e4623175b5188a0e1752399cd006d73b7390a (diff) |
Use the correct send slot when mixing
-rw-r--r-- | Alc/mixer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index df0480aa..fd351f19 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -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; \ |