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/alcModulator.c | |
parent | 98ff6f990af1ad3159c5d9a2209b7b6de36d2130 (diff) |
Use a non-interleaved DryBuffer
Diffstat (limited to 'Alc/alcModulator.c')
-rw-r--r-- | Alc/alcModulator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/alcModulator.c b/Alc/alcModulator.c index ce91e95a..46bf1717 100644 --- a/Alc/alcModulator.c +++ b/Alc/alcModulator.c @@ -84,7 +84,7 @@ static __inline ALfloat hpFilter1P(FILTER *iir, ALuint offset, ALfloat input) #define DECL_TEMPLATE(func) \ static void Process##func(ALmodulatorState *state, ALuint SamplesToDo, \ - const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MaxChannels]) \ + const ALfloat *SamplesIn, ALfloat (*SamplesOut)[BUFFERSIZE]) \ { \ const ALuint step = state->step; \ ALuint index = state->index; \ @@ -102,7 +102,7 @@ static void Process##func(ALmodulatorState *state, ALuint SamplesToDo, \ samp = hpFilter1P(&state->iirFilter, 0, samp); \ \ for(k = 0;k < MaxChannels;k++) \ - SamplesOut[i][k] += state->Gain[k] * samp; \ + SamplesOut[k][i] += state->Gain[k] * samp; \ } \ state->index = index; \ } @@ -160,7 +160,7 @@ static ALvoid ModulatorUpdate(ALeffectState *effect, ALCdevice *Device, const AL } } -static ALvoid ModulatorProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[MaxChannels]) +static ALvoid ModulatorProcess(ALeffectState *effect, ALuint SamplesToDo, const ALfloat *SamplesIn, ALfloat (*SamplesOut)[BUFFERSIZE]) { ALmodulatorState *state = (ALmodulatorState*)effect; |