Padding is not dependant on the frequency cutoff anymore

This commit is contained in:
Chris Robinson
2008-10-31 23:32:28 -07:00
parent 87f3a0dc16
commit af5a5b76ec
+1 -5
View File
@@ -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));