summaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index baef411d..cab3f8af 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -115,9 +115,9 @@ void MixSend_C(SendParams *params, const ALfloat *RESTRICT data,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
ALeffectslot *Slot = params->Slot;
- ALfloat *WetBuffer = Slot->WetBuffer;
- ALfloat *WetClickRemoval = Slot->ClickRemoval;
- ALfloat *WetPendingClicks = Slot->PendingClicks;
+ ALfloat (*RESTRICT WetBuffer)[BUFFERSIZE] = Slot->WetBuffer;
+ ALfloat *RESTRICT WetClickRemoval = Slot->ClickRemoval;
+ ALfloat *RESTRICT WetPendingClicks = Slot->PendingClicks;
ALfloat WetSend = params->Gain;
ALuint pos;
@@ -128,7 +128,7 @@ void MixSend_C(SendParams *params, const ALfloat *RESTRICT data,
}
for(pos = 0;pos < BufferSize;pos++)
{
- WetBuffer[OutPos] += data[pos] * WetSend;
+ WetBuffer[0][OutPos] += data[pos] * WetSend;
OutPos++;
}
if(OutPos == SamplesToDo)