aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/modulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r--Alc/effects/modulator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c
index 4183b908..c283d4b0 100644
--- a/Alc/effects/modulator.c
+++ b/Alc/effects/modulator.c
@@ -129,8 +129,11 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice *
0.0f, 0.0f, scale, 0.0f,
0.0f, 0.0f, 0.0f, scale
);
+
+ STATIC_CAST(ALeffectState,state)->OutBuffer = Device->FOAOut.Buffer;
+ STATIC_CAST(ALeffectState,state)->OutChannels = Device->FOAOut.NumChannels;
for(i = 0;i < MAX_EFFECT_CHANNELS;i++)
- ComputeFirstOrderGains(Device->Dry.AmbiCoeffs, Device->Dry.NumChannels,
+ ComputeFirstOrderGains(Device->FOAOut.AmbiCoeffs, Device->FOAOut.NumChannels,
matrix.m[i], Slot->Gain, state->Gain[i]);
}