Padding is not dependant on the frequency cutoff anymore
This commit is contained in:
+1
-5
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user