From 2fa3ae85c9a4050eab3a4f140fb6accd0a02ce85 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 27 Jan 2016 08:16:47 -0800 Subject: Pass a pointer to the input samples array for effect processing --- Alc/effects/reverb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc/effects/reverb.c') diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index f3de2116..b822ec19 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -627,12 +627,12 @@ static ALvoid ALreverbState_processEax(ALreverbState *State, ALuint SamplesToDo, } } -static ALvoid ALreverbState_process(ALreverbState *State, ALuint SamplesToDo, const ALfloat *restrict SamplesIn, ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels) +static ALvoid ALreverbState_process(ALreverbState *State, ALuint SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels) { if(State->IsEax) - ALreverbState_processEax(State, SamplesToDo, SamplesIn, SamplesOut, NumChannels); + ALreverbState_processEax(State, SamplesToDo, SamplesIn[0], SamplesOut, NumChannels); else - ALreverbState_processStandard(State, SamplesToDo, SamplesIn, SamplesOut, NumChannels); + ALreverbState_processStandard(State, SamplesToDo, SamplesIn[0], SamplesOut, NumChannels); } // Given the allocated sample buffer, this function updates each delay line -- cgit v1.2.3