diff options
author | Chris Robinson <[email protected]> | 2012-09-16 08:27:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-16 08:27:50 -0700 |
commit | 79b6d89b3f3f49649e349d8bac1a9bb42ec3f1de (patch) | |
tree | a726f5de2a84682f5d04fd508e23625d0220e018 /Alc/mixer_c.c | |
parent | 535e8fd0f76ac9e8a9338cfcf873aafc83d42758 (diff) |
Explicitly give the wet buffer 1 channel
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r-- | Alc/mixer_c.c | 8 |
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) |