diff options
author | Chris Robinson <[email protected]> | 2016-03-25 23:25:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-25 23:25:13 -0700 |
commit | e0466766d7f9e3017c3bb8fc39a132ee05a357d6 (patch) | |
tree | dc5ae06aacb44335297a8e647165844d09cfe492 /Alc/effects/modulator.c | |
parent | e23da7a1dea9997f61d23af50ed915ebee98f2e9 (diff) |
Include any first-order scaling in the FOAOut coefficients
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r-- | Alc/effects/modulator.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index c283d4b0..03e0d458 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -93,8 +93,8 @@ static ALboolean ALmodulatorState_deviceUpdate(ALmodulatorState *UNUSED(state), static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice *Device, const ALeffectslot *Slot) { - ALfloat scale, cw, a; aluMatrixf matrix; + ALfloat cw, a; ALuint i; if(Slot->EffectProps.Modulator.Waveform == AL_RING_MODULATOR_SINUSOID) @@ -122,12 +122,11 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice * state->Filter[i].process = ALfilterState_processC; } - scale = Device->Dry.AmbiScale; aluMatrixfSet(&matrix, - 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, scale, 0.0f, 0.0f, - 0.0f, 0.0f, scale, 0.0f, - 0.0f, 0.0f, 0.0f, scale + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f ); STATIC_CAST(ALeffectState,state)->OutBuffer = Device->FOAOut.Buffer; |