From fdb03d894b7d609d8d8f5dfe713eaa63301b17a9 Mon Sep 17 00:00:00 2001 From: plombo Date: Sat, 9 Apr 2011 00:00:15 +0000 Subject: [PATCH] sdl: remove useless commented code --- src/drivers/sdl/sdl-sound.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/drivers/sdl/sdl-sound.cpp b/src/drivers/sdl/sdl-sound.cpp index f598e130..3c86ee77 100644 --- a/src/drivers/sdl/sdl-sound.cpp +++ b/src/drivers/sdl/sdl-sound.cpp @@ -54,14 +54,6 @@ fillaudio(void *udata, // debug code //printf("s_BufferIn: %i s_BufferWrite = %i s_BufferRead = %i s_BufferSize = %i\n", // s_BufferIn, s_BufferWrite, s_BufferRead, s_BufferSize); - -/* XXX RDJ: WTF? This doesn't make any sense at all. This will ensure that garbage data *does* - make it to the sound card, both in theory (it breaks the idea of a ring buffer) and in practice - (I get all sorts of pops, snaps, and garbled noise on my machine with these lines in place). - // ensure that we're not writing garbage data to the soundcard - if(s_BufferWrite > s_BufferRead) - s_BufferWrite = s_BufferRead; -*/ while(len) { int16 sample = 0;