Skip to content

Commit

Permalink
CROSS2D: remove un-needed audio buffer hack (SDL2/PSP2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Jan 29, 2017
1 parent 2714577 commit f3a0e03
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pfba/deps/libcross2d/src/sdl2/sdl2_audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f3a0e03

Please sign in to comment.