From f3a0e036faae63356b25da276b1b2e86cad616d7 Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Sun, 29 Jan 2017 13:38:11 -0600 Subject: [PATCH] CROSS2D: remove un-needed audio buffer hack (SDL2/PSP2) --- pfba/deps/libcross2d/src/sdl2/sdl2_audio.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/pfba/deps/libcross2d/src/sdl2/sdl2_audio.cpp b/pfba/deps/libcross2d/src/sdl2/sdl2_audio.cpp index 56638e5..cfe3a65 100644 --- a/pfba/deps/libcross2d/src/sdl2/sdl2_audio.cpp +++ b/pfba/deps/libcross2d/src/sdl2/sdl2_audio.cpp @@ -90,7 +90,6 @@ SDL2Audio::SDL2Audio(int freq, int fps) : Audio(freq, fps) { // Find the value which is slighly bigger than buffer_len*2 for (sample_size = 512; sample_size < (buffer_len * 2); sample_size <<= 1); - sample_size /= 4; // fix audio delay buf_size = sample_size * channels * 2 * 8; buffer_sdl = (unsigned char *) malloc((size_t) buf_size); memset(buffer_sdl, 0, (size_t) buf_size);