From af5a5b76ece3a1e447b2b42b07e1b08c50b0c041 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 31 Oct 2008 23:32:28 -0700 Subject: Padding is not dependant on the frequency cutoff anymore --- OpenAL32/alBuffer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 0b02b5de..8b6c4551 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -1011,7 +1011,7 @@ static void LoadData(ALbuffer *ALBuf, const ALubyte *data, ALsizei size, ALuint ALuint NewChannels = aluChannelsFromFormat(NewFormat); ALuint OrigBytes = aluBytesFromFormat(OrigFormat); ALuint OrigChannels = aluChannelsFromFormat(OrigFormat); - ALsizei padding = freq / LOWPASSFREQCUTOFF; + ALsizei padding = 2; ALvoid *temp; ALsizei i; @@ -1024,10 +1024,6 @@ static void LoadData(ALbuffer *ALBuf, const ALubyte *data, ALsizei size, ALuint return; } - /* Ensure at least one padding byte for the bilinear filter */ - if(padding < 1) - padding = 1; - // Samples are converted to 16 bit here size /= OrigBytes; temp = realloc(ALBuf->data, (padding*NewChannels + size) * sizeof(ALshort)); -- cgit v1.2.3