aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-16 08:27:50 -0700
committerChris Robinson <[email protected]>2012-09-16 08:27:50 -0700
commit79b6d89b3f3f49649e349d8bac1a9bb42ec3f1de (patch)
treea726f5de2a84682f5d04fd508e23625d0220e018 /Alc/ALu.c
parent535e8fd0f76ac9e8a9338cfcf873aafc83d42758 (diff)
Explicitly give the wet buffer 1 channel
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index a7f0839a..2aa5bf55 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -943,9 +943,9 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
slot_end = slot + ctx->ActiveEffectSlotCount;
while(slot != slot_end)
{
- for(c = 0;c < SamplesToDo;c++)
+ for(i = 0;i < SamplesToDo;i++)
{
- (*slot)->WetBuffer[c] += (*slot)->ClickRemoval[0];
+ (*slot)->WetBuffer[0][i] += (*slot)->ClickRemoval[0];
(*slot)->ClickRemoval[0] -= (*slot)->ClickRemoval[0] * (1.0f/256.0f);
}
(*slot)->ClickRemoval[0] += (*slot)->PendingClicks[0];
@@ -955,10 +955,10 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
ALeffectState_Update((*slot)->EffectState, device, *slot);
ALeffectState_Process((*slot)->EffectState, SamplesToDo,
- (*slot)->WetBuffer, device->DryBuffer);
+ (*slot)->WetBuffer[0], device->DryBuffer);
for(i = 0;i < SamplesToDo;i++)
- (*slot)->WetBuffer[i] = 0.0f;
+ (*slot)->WetBuffer[0][i] = 0.0f;
slot++;
}
@@ -969,9 +969,9 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
slot = &device->DefaultSlot;
if(*slot != NULL)
{
- for(c = 0;c < SamplesToDo;c++)
+ for(i = 0;i < SamplesToDo;i++)
{
- (*slot)->WetBuffer[c] += (*slot)->ClickRemoval[0];
+ (*slot)->WetBuffer[0][i] += (*slot)->ClickRemoval[0];
(*slot)->ClickRemoval[0] -= (*slot)->ClickRemoval[0] * (1.0f/256.0f);
}
(*slot)->ClickRemoval[0] += (*slot)->PendingClicks[0];
@@ -981,10 +981,10 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
ALeffectState_Update((*slot)->EffectState, device, *slot);
ALeffectState_Process((*slot)->EffectState, SamplesToDo,
- (*slot)->WetBuffer, device->DryBuffer);
+ (*slot)->WetBuffer[0], device->DryBuffer);
for(i = 0;i < SamplesToDo;i++)
- (*slot)->WetBuffer[i] = 0.0f;
+ (*slot)->WetBuffer[0][i] = 0.0f;
}
ALCdevice_Unlock(device);