diff options
author | Chris Robinson <[email protected]> | 2012-10-10 03:40:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-10 03:40:01 -0700 |
commit | 1b7f01b7cc28cf4e517ada656faf5b3828c8fe68 (patch) | |
tree | a2587dd1a7b1f4ab8de2f46115ba9dd35fc0c1f1 | |
parent | a4f21aaa648a8bdef3b75725a4b60bc43fbbd8d7 (diff) |
The max step is no longer dependent on the channel count
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |