diff options
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alBuffer.c | 6 |
1 files changed, 1 insertions, 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)); |