diff options
Diffstat (limited to 'Alc/effects/chorus.c')
-rw-r--r-- | Alc/effects/chorus.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |