summaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-10 03:40:01 -0700
committerChris Robinson <[email protected]>2012-10-10 03:40:01 -0700
commit1b7f01b7cc28cf4e517ada656faf5b3828c8fe68 (patch)
treea2587dd1a7b1f4ab8de2f46115ba9dd35fc0c1f1 /Alc/ALu.c
parenta4f21aaa648a8bdef3b75725a4b60bc43fbbd8d7 (diff)
The max step is no longer dependent on the channel count
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files 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);