diff options
Diffstat (limited to 'Alc/effects/flanger.c')
-rw-r--r-- | Alc/effects/flanger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/effects/flanger.c b/Alc/effects/flanger.c index 5fcc8be8..21536f04 100644 --- a/Alc/effects/flanger.c +++ b/Alc/effects/flanger.c @@ -204,7 +204,7 @@ DECL_TEMPLATE(Sinusoid) #undef DECL_TEMPLATE -static ALvoid ALflangerState_process(ALflangerState *state, ALuint SamplesToDo, const ALfloat *restrict SamplesIn, ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels) +static ALvoid ALflangerState_process(ALflangerState *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 ALflangerState_process(ALflangerState *state, ALuint SamplesToDo, switch(state->waveform) { case FWF_Triangle: - ProcessTriangle(state, td, SamplesIn+base, temps); + ProcessTriangle(state, td, SamplesIn[0]+base, temps); break; case FWF_Sinusoid: - ProcessSinusoid(state, td, SamplesIn+base, temps); + ProcessSinusoid(state, td, SamplesIn[0]+base, temps); break; } |