From a7c62dbabc19a115577b1015e835b82ac21904f8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 1 Nov 2008 16:37:32 -0700 Subject: More padding fixes --- OpenAL32/alBuffer.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 27ff69fc..54fce5f8 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -261,8 +261,8 @@ ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid *d ALint LeftSample,LeftIndex; ALint RightSample,RightIndex; ALuint LeftIMACode,RightIMACode; + ALsizei padding = 2; ALbuffer *ALBuf; - ALsizei padding; ALsizei i,j,k; ALvoid *temp; @@ -306,9 +306,6 @@ ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid *d break; } - padding = freq / LOWPASSFREQCUTOFF; - if(padding < 1) padding = 1; - size /= OrigBytes; size *= 2; @@ -398,9 +395,6 @@ ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid *d break; case AL_FORMAT_MONO_IMA4: - padding = freq / LOWPASSFREQCUTOFF; - if(padding < 1) padding = 1; - // Here is where things vary: // nVidia and Apple use 64+1 samples per block => block_size=36 bytes // Most PC sound software uses 2040+1 samples per block -> block_size=1024 bytes @@ -465,9 +459,6 @@ ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid *d break; case AL_FORMAT_STEREO_IMA4: - padding = freq / LOWPASSFREQCUTOFF; - if(padding < 1) padding = 1; - // Here is where things vary: // nVidia and Apple use 64+1 samples per channel per block => block_size=72 bytes // Most PC sound software uses 2040+1 samples per channel per block -> block_size=2048 bytes -- cgit v1.2.3