aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/distortion.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/distortion.c
parentfd387beda183c2c443ec45f7193f81cf82ede164 (diff)
Pass a pointer to the input samples array for effect processing
Diffstat (limited to 'Alc/effects/distortion.c')
-rw-r--r--Alc/effects/distortion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/distortion.c b/Alc/effects/distortion.c
index dc2e280a..697758f0 100644
--- a/Alc/effects/distortion.c
+++ b/Alc/effects/distortion.c
@@ -86,7 +86,7 @@ static ALvoid ALdistortionState_update(ALdistortionState *state, const ALCdevice
ComputeAmbientGains(Device->AmbiCoeffs, Device->NumChannels, Slot->Gain, state->Gain);
}
-static ALvoid ALdistortionState_process(ALdistortionState *state, ALuint SamplesToDo, const ALfloat *restrict SamplesIn, ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels)
+static ALvoid ALdistortionState_process(ALdistortionState *state, ALuint SamplesToDo, const ALfloat (*restrict SamplesIn)[BUFFERSIZE], ALfloat (*restrict SamplesOut)[BUFFERSIZE], ALuint NumChannels)
{
const ALfloat fc = state->edge_coeff;
ALuint base;
@@ -108,7 +108,7 @@ static ALvoid ALdistortionState_process(ALdistortionState *state, ALuint Samples
/* Fill oversample buffer using zero stuffing */
for(it = 0;it < td;it++)
{
- oversample_buffer[it][0] = SamplesIn[it+base];
+ oversample_buffer[it][0] = SamplesIn[0][it+base];
oversample_buffer[it][1] = 0.0f;
oversample_buffer[it][2] = 0.0f;
oversample_buffer[it][3] = 0.0f;