aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/modulator.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-06-27 07:25:08 -0700
committerChris Robinson <[email protected]>2017-06-27 07:25:08 -0700
commite9a7218a06e268afcedf8207e5a5d79991e21356 (patch)
tree987d2bbf3f1c80d9ebe0247b4205e644d5db7caa /Alc/effects/modulator.c
parent8f2bbc434c91b5d402de0e44b862a272928667a9 (diff)
Remove the fastf2u conversion function
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r--Alc/effects/modulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c
index e9026a62..5de88fcd 100644
--- a/Alc/effects/modulator.c
+++ b/Alc/effects/modulator.c
@@ -127,7 +127,7 @@ static ALvoid ALmodulatorState_update(ALmodulatorState *state, const ALCdevice *
else /*if(Slot->Params.EffectProps.Modulator.Waveform == AL_RING_MODULATOR_SQUARE)*/
state->Process = ModulateSquare;
- state->step = fastf2u(props->Modulator.Frequency*WAVEFORM_FRACONE /
+ state->step = fastf2i(props->Modulator.Frequency*WAVEFORM_FRACONE /
Device->Frequency);
if(state->step == 0) state->step = 1;