aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects')
-rw-r--r--Alc/effects/echo.c2
-rw-r--r--Alc/effects/reverb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/echo.c b/Alc/effects/echo.c
index 9513a611..049ae9c7 100644
--- a/Alc/effects/echo.c
+++ b/Alc/effects/echo.c
@@ -97,7 +97,7 @@ static ALvoid ALechoState_update(ALechoState *state, ALCdevice *Device, const AL
ALfilterState_setParams(&state->Filter, ALfilterType_HighShelf,
1.0f - Slot->EffectProps.Echo.Damping,
- (ALfloat)LOWPASSFREQREF/frequency, 0.0f);
+ LOWPASSFREQREF/frequency, 0.0f);
gain = Slot->Gain;
dirGain = fabsf(lrpan);
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index d5a28823..245aed41 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -1096,7 +1096,7 @@ static ALvoid ALreverbState_update(ALreverbState *State, ALCdevice *Device, cons
}
else
{
- hfscale = (ALfloat)LOWPASSFREQREF / frequency;
+ hfscale = LOWPASSFREQREF / frequency;
ALfilterState_setParams(&State->LpFilter, ALfilterType_HighShelf,
Slot->EffectProps.Reverb.GainHF,
hfscale, 0.0f);