diff options
author | Chris Robinson <[email protected]> | 2012-09-08 22:09:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-08 22:09:34 -0700 |
commit | 89cab3cd393a8fd9b3fd9e33a19103108258e938 (patch) | |
tree | 7fb0c9159daf5fb6c1b8d4983a5ed4b0dfa4d706 /Alc/ALu.c | |
parent | 6723d27e06f8fe06876be81d76de5b482e2f9b33 (diff) |
Remove STACK_DATA_SIZE in favor of BUFFERSIZE
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -151,8 +151,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALbuffer *ALBuffer; if((ALBuffer=BufferListItem->buffer) != NULL) { - ALsizei maxstep = STACK_DATA_SIZE/sizeof(ALfloat) / - ALSource->NumChannels; + ALsizei maxstep = BUFFERSIZE / ALSource->NumChannels; maxstep -= ResamplerPadding[Resampler] + ResamplerPrePadding[Resampler] + 1; maxstep = mini(maxstep, INT_MAX>>FRACTIONBITS); @@ -645,8 +644,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) { /* Calculate fixed-point stepping value, based on the pitch, buffer * frequency, and output frequency. */ - ALsizei maxstep = STACK_DATA_SIZE/sizeof(ALfloat) / - ALSource->NumChannels; + ALsizei maxstep = BUFFERSIZE / ALSource->NumChannels; maxstep -= ResamplerPadding[Resampler] + ResamplerPrePadding[Resampler] + 1; maxstep = mini(maxstep, INT_MAX>>FRACTIONBITS); |