diff options
author | Chris Robinson <[email protected]> | 2010-11-28 12:53:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-28 12:53:35 -0800 |
commit | c41e893361f4c912b8c6c4c703bf7590c957318d (patch) | |
tree | ddb037cd77a117c5c7d0ce2c3b31fbb8d992569d /Alc/ALu.c | |
parent | 2fd8d6916bae6b681f065e5dfe1f962641f41533 (diff) |
Don't store the internal format in the buffer
The type and channel config are good enough
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -114,8 +114,8 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALbuffer *ALBuffer; if((ALBuffer=BufferListItem->buffer) != NULL) { - ALint maxstep = STACK_DATA_SIZE / - aluFrameSizeFromFormat(ALBuffer->format); + ALint maxstep = STACK_DATA_SIZE / FrameSizeFromFmt(ALBuffer->FmtType, + ALBuffer->FmtChannels); maxstep -= ResamplerPadding[ALSource->Resampler] + ResamplerPrePadding[ALSource->Resampler] + 1; maxstep = min(maxstep, INT_MAX>>FRACTIONBITS); @@ -592,8 +592,8 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALbuffer *ALBuffer; if((ALBuffer=BufferListItem->buffer) != NULL) { - ALint maxstep = STACK_DATA_SIZE / - aluFrameSizeFromFormat(ALBuffer->format); + ALint maxstep = STACK_DATA_SIZE / FrameSizeFromFmt(ALBuffer->FmtType, + ALBuffer->FmtChannels); maxstep -= ResamplerPadding[ALSource->Resampler] + ResamplerPrePadding[ALSource->Resampler] + 1; maxstep = min(maxstep, INT_MAX>>FRACTIONBITS); |