aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-10-31 23:32:28 -0700
committerChris Robinson <[email protected]>2008-10-31 23:32:28 -0700
commitaf5a5b76ece3a1e447b2b42b07e1b08c50b0c041 (patch)
treeda9c04bc5590731dfad0b966abe31ebc9198d3e6 /OpenAL32
parent87f3a0dc1608e8d494b6c24f447420eb70aa1eec (diff)
Padding is not dependant on the frequency cutoff anymore
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alBuffer.c6
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));