fix possible overflow in wav resampling. now it doesn't shit itself when loading large wavs.
This commit is contained in:
parent
c0c115a0ee
commit
46bc2dba33
|
@ -161,7 +161,7 @@ void MicLoadWav(char* name)
|
|||
if (!SDL_LoadWAV(name, &format, &buf, &len))
|
||||
return;
|
||||
|
||||
const int dstfreq = 44100;
|
||||
const u64 dstfreq = 44100;
|
||||
|
||||
if (format.format == AUDIO_S16 || format.format == AUDIO_U16)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue