mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
fix possible overflow in wav resampling. now it doesn't shit itself when loading large wavs.
This commit is contained in:
@ -161,7 +161,7 @@ void MicLoadWav(char* name)
|
|||||||
if (!SDL_LoadWAV(name, &format, &buf, &len))
|
if (!SDL_LoadWAV(name, &format, &buf, &len))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const int dstfreq = 44100;
|
const u64 dstfreq = 44100;
|
||||||
|
|
||||||
if (format.format == AUDIO_S16 || format.format == AUDIO_U16)
|
if (format.format == AUDIO_S16 || format.format == AUDIO_U16)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user