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/chorus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc/effects/chorus.c') diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c index 1477d58b..1c9efd47 100644 --- a/Alc/effects/chorus.c +++ b/Alc/effects/chorus.c @@ -204,7 +204,7 @@ DECL_TEMPLATE(Sinusoid) #undef DECL_TEMPLATE -static ALvoid ALchorusState_process(ALchorusState *state, ALuint SamplesToDo, const ALfloat *restrict SamplesIn, ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels) +static ALvoid ALchorusState_process(ALchorusState *state, ALuint SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels) { ALuint it, kt; ALuint base; @@ -217,10 +217,10 @@ static ALvoid ALchorusState_process(ALchorusState *state, ALuint SamplesToDo, co switch(state->waveform) { case CWF_Triangle: - ProcessTriangle(state, td, SamplesIn+base, temps); + ProcessTriangle(state, td, SamplesIn[0]+base, temps); break; case CWF_Sinusoid: - ProcessSinusoid(state, td, SamplesIn+base, temps); + ProcessSinusoid(state, td, SamplesIn[0]+base, temps); break; } -- cgit v1.2.3