From 46bc2dba3310787f84b99e8b544ccb324b840f1f Mon Sep 17 00:00:00 2001 From: StapleButter Date: Fri, 14 Dec 2018 05:52:36 +0100 Subject: [PATCH] fix possible overflow in wav resampling. now it doesn't shit itself when loading large wavs. --- src/libui_sdl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index d1e1f70e..39c2ac39 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -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) {