From 1b7f01b7cc28cf4e517ada656faf5b3828c8fe68 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 10 Oct 2012 03:40:01 -0700 Subject: [PATCH] The max step is no longer dependent on the channel count --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 8dee6a43..326766c5 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -207,7 +207,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALbuffer *ALBuffer; if((ALBuffer=BufferListItem->buffer) != NULL) { - ALsizei maxstep = BUFFERSIZE / ALSource->NumChannels; + ALsizei maxstep = BUFFERSIZE; maxstep -= ResamplerPadding[Resampler] + ResamplerPrePadding[Resampler] + 1; maxstep = mini(maxstep, INT_MAX>>FRACTIONBITS); @@ -701,7 +701,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) { /* Calculate fixed-point stepping value, based on the pitch, buffer * frequency, and output frequency. */ - ALsizei maxstep = BUFFERSIZE / ALSource->NumChannels; + ALsizei maxstep = BUFFERSIZE; maxstep -= ResamplerPadding[Resampler] + ResamplerPrePadding[Resampler] + 1; maxstep = mini(maxstep, INT_MAX>>FRACTIONBITS); -- 2.11.4.GIT