diff options
author | Chris Robinson <[email protected]> | 2018-01-09 23:55:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-09 23:55:59 -0800 |
commit | ef63ec3fe9364d2036878fa871f49ee60f84482b (patch) | |
tree | 5c818196e004bfc4278b5c6ddd4763b598456ac6 /Alc/effects | |
parent | de8c5b18248ee5d121cbd4b34b9af94f5e16df35 (diff) |
Use one macro to handle both resample padding sizes
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/chorus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c index d028dbb0..65d2225b 100644 --- a/Alc/effects/chorus.c +++ b/Alc/effects/chorus.c @@ -120,7 +120,7 @@ static ALboolean ALchorusState_deviceUpdate(ALchorusState *state, ALCdevice *Dev static ALvoid ALchorusState_update(ALchorusState *state, const ALCcontext *Context, const ALeffectslot *Slot, const ALeffectProps *props) { - const ALsizei mindelay = maxi(MAX_PRE_SAMPLES, MAX_POST_SAMPLES) << FRACTIONBITS; + const ALsizei mindelay = MAX_RESAMPLE_PADDING << FRACTIONBITS; const ALCdevice *device = Context->Device; ALfloat frequency = (ALfloat)device->Frequency; ALfloat coeffs[MAX_AMBI_COEFFS]; |