diff options
Diffstat (limited to 'Alc/effects/chorus.c')
-rw-r--r-- | Alc/effects/chorus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c index 21db73f6..62f2e531 100644 --- a/Alc/effects/chorus.c +++ b/Alc/effects/chorus.c @@ -165,7 +165,10 @@ static ALvoid ALchorusState_update(ALchorusState *state, const ALCdevice *Device } /* Calculate lfo phase displacement */ - state->lfo_disp = fastf2i(state->lfo_range * (phase/360.0f)); + if(phase >= 0) + state->lfo_disp = fastf2i(state->lfo_range * (phase/360.0f)); + else + state->lfo_disp = fastf2i(state->lfo_range * ((360+phase)/360.0f)); } } |