diff options
author | StapleButter <thetotalworm@gmail.com> | 2018-12-14 05:52:36 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2018-12-14 05:52:36 +0100 |
commit | 46bc2dba3310787f84b99e8b544ccb324b840f1f (patch) | |
tree | df0016c50db17ba246e1024039b3aa3c3ed38d66 /src | |
parent | c0c115a0eee83a2a5d61d26b8f20525f83f92850 (diff) |
fix possible overflow in wav resampling. now it doesn't shit itself when loading large wavs.
Diffstat (limited to 'src')
-rw-r--r-- | src/libui_sdl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index d1e1f70..39c2ac3 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) { |