aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/chorus.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects/chorus.c')
-rw-r--r--Alc/effects/chorus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c
index 901c1157..2592c673 100644
--- a/Alc/effects/chorus.c
+++ b/Alc/effects/chorus.c
@@ -142,7 +142,8 @@ static ALvoid ALchorusState_update(ALchorusState *state, const ALCcontext *Conte
*/
state->delay = maxi(fastf2i(props->Chorus.Delay*frequency*FRACTIONONE + 0.5f),
mindelay);
- state->depth = minf(props->Chorus.Depth * state->delay, state->delay - mindelay);
+ state->depth = minf(props->Chorus.Depth * state->delay,
+ (ALfloat)(state->delay - mindelay));
state->feedback = props->Chorus.Feedback;