sdl: remove useless commented code
This commit is contained in:
parent
75f1a4f6f9
commit
fdb03d894b
|
@ -55,14 +55,6 @@ fillaudio(void *udata,
|
||||||
//printf("s_BufferIn: %i s_BufferWrite = %i s_BufferRead = %i s_BufferSize = %i\n",
|
//printf("s_BufferIn: %i s_BufferWrite = %i s_BufferRead = %i s_BufferSize = %i\n",
|
||||||
// s_BufferIn, s_BufferWrite, s_BufferRead, s_BufferSize);
|
// 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) {
|
while(len) {
|
||||||
int16 sample = 0;
|
int16 sample = 0;
|
||||||
if(s_BufferIn) {
|
if(s_BufferIn) {
|
||||||
|
|
Loading…
Reference in New Issue