aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_inc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-14 11:21:52 -0700
committerChris Robinson <[email protected]>2012-10-14 11:21:52 -0700
commita852669dcebf7ff80a0698ca8afe6c8400480202 (patch)
treea190d8cb692f7e21e29b30283b7709b0cd957cbe /Alc/mixer_inc.c
parent3240894cd5ee4d3bae6798b6d480ef2dfacc403a (diff)
Store the output buffers in the DirectParams struct
Diffstat (limited to 'Alc/mixer_inc.c')
-rw-r--r--Alc/mixer_inc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c
index 349af440..1630d5d9 100644
--- a/Alc/mixer_inc.c
+++ b/Alc/mixer_inc.c
@@ -33,9 +33,9 @@ void MixDirect_Hrtf(ALCdevice *Device, DirectParams *params,
const ALfloat *RESTRICT data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
- ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = Device->DryBuffer;
- ALfloat *RESTRICT ClickRemoval = Device->ClickRemoval;
- ALfloat *RESTRICT PendingClicks = Device->PendingClicks;
+ ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = params->OutBuffer;
+ ALfloat *RESTRICT ClickRemoval = params->ClickRemoval;
+ ALfloat *RESTRICT PendingClicks = params->PendingClicks;
const ALuint IrSize = params->Hrtf.IrSize;
const ALint *RESTRICT DelayStep = params->Hrtf.DelayStep;
ALfloat (*RESTRICT CoeffStep)[2] = params->Hrtf.CoeffStep;
@@ -50,6 +50,7 @@ void MixDirect_Hrtf(ALCdevice *Device, DirectParams *params,
ALfloat left, right;
ALuint pos;
ALuint c;
+ (void)Device;
pos = 0;
for(c = 0;c < IrSize;c++)