aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-17 10:10:26 -0700
committerChris Robinson <[email protected]>2016-03-17 10:10:26 -0700
commitce575718ef495c3c146d7a1b443ce556014e057f (patch)
treef8482707b34b158a78a10634b55fc5aaaa098545 /Alc/ALu.c
parent606402fff05b115bc8b4728f9444fa46ef7e5e35 (diff)
Store the effect's output buffer in the effect state
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 5064a588..55ed84dc 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1417,8 +1417,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
{
const ALeffectslot *slot = VECTOR_ELEM(ctx->ActiveAuxSlots, i);
ALeffectState *state = slot->EffectState;
- V(state,process)(SamplesToDo, slot->WetBuffer, device->Dry.Buffer,
- device->Dry.NumChannels);
+ V(state,process)(SamplesToDo, slot->WetBuffer, state->OutBuffer,
+ state->OutChannels);
}
ctx = ctx->next;
@@ -1428,8 +1428,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
{
const ALeffectslot *slot = device->DefaultSlot;
ALeffectState *state = slot->EffectState;
- V(state,process)(SamplesToDo, slot->WetBuffer, device->Dry.Buffer,
- device->Dry.NumChannels);
+ V(state,process)(SamplesToDo, slot->WetBuffer, state->OutBuffer,
+ state->OutChannels);
}
/* Increment the clock time. Every second's worth of samples is
@@ -1503,7 +1503,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
if(buffer)
{
ALfloat (*OutBuffer)[BUFFERSIZE] = device->RealOut.Buffer;
- ALuint OutChannels = device->RealOut.NumChannels;;
+ ALuint OutChannels = device->RealOut.NumChannels;
#define WRITE(T, a, b, c, d) do { \
Write_##T((a), (b), (c), (d)); \