aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/equalizer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-01-27 08:16:47 -0800
committerChris Robinson <[email protected]>2016-01-27 08:16:47 -0800
commit2fa3ae85c9a4050eab3a4f140fb6accd0a02ce85 (patch)
tree1aeb9e34ba5a5081de853f84a9d03159ef48fd00 /Alc/effects/equalizer.c
parentfd387beda183c2c443ec45f7193f81cf82ede164 (diff)
Pass a pointer to the input samples array for effect processing
Diffstat (limited to 'Alc/effects/equalizer.c')
-rw-r--r--Alc/effects/equalizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/equalizer.c b/Alc/effects/equalizer.c
index 4f7846fd..8ef52986 100644
--- a/Alc/effects/equalizer.c
+++ b/Alc/effects/equalizer.c
@@ -126,7 +126,7 @@ static ALvoid ALequalizerState_update(ALequalizerState *state, const ALCdevice *
);
}
-static ALvoid ALequalizerState_process(ALequalizerState *state, ALuint SamplesToDo, const ALfloat *restrict SamplesIn, ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels)
+static ALvoid ALequalizerState_process(ALequalizerState *state, ALuint SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels)
{
ALuint base;
ALuint it;
@@ -140,7 +140,7 @@ static ALvoid ALequalizerState_process(ALequalizerState *state, ALuint SamplesTo
for(it = 0;it < td;it++)
{
- ALfloat smp = SamplesIn[base+it];
+ ALfloat smp = SamplesIn[0][base+it];
for(ft = 0;ft < 4;ft++)
smp = ALfilterState_processSingle(&state->filter[ft], smp);