diff options
author | Chris Robinson <[email protected]> | 2012-09-11 06:32:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-11 06:32:42 -0700 |
commit | 4c5cb2189b56808767e755d140b2246ee19ff39c (patch) | |
tree | 7ca5c2eac755641edfcc4d5943e038d9a6b2b113 /Alc/alcEcho.c | |
parent | 98ff6f990af1ad3159c5d9a2209b7b6de36d2130 (diff) |
Use a non-interleaved DryBuffer
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r-- | Alc/alcEcho.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index e3c3df96..1a586488 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -126,7 +126,7 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCdevice *Device, const ALeffec ComputeAngleGains(Device, atan2f(+lrpan, 0.0f), (1.0f-dirGain)*F_PI, gain, state->Gain[1]); } -static ALvoid EchoProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MaxChannels]) +static ALvoid EchoProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[BUFFERSIZE]) { ALechoState *state = (ALechoState*)effect; const ALuint mask = state->BufferLength-1; @@ -141,12 +141,12 @@ static ALvoid EchoProcess(ALeffectState *effect, ALuint SamplesToDo, const ALflo /* First tap */ smp = state->SampleBuffer[(offset-tap1) & mask]; for(k = 0;k < MaxChannels;k++) - SamplesOut[i][k] += smp * state->Gain[0][k]; + SamplesOut[k][i] += smp * state->Gain[0][k]; /* Second tap */ smp = state->SampleBuffer[(offset-tap2) & mask]; for(k = 0;k < MaxChannels;k++) - SamplesOut[i][k] += smp * state->Gain[1][k]; + SamplesOut[k][i] += smp * state->Gain[1][k]; // Apply damping and feedback gain to the second tap, and mix in the // new sample |