diff --git a/changelog.txt b/changelog.txt index 09a4b5fc..dd5e05c1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,5 @@ ---version 2.0.4 yet to be released--- +10-nov-2008 - punkrockguy - improved the sdl sound code; drasticaly improves quality of sound. 09-nov-2008 - adelikat - minor memory watch menu clean up, removed Ctrl+W hotkey for close (and placed Alt+F4 on the menu name) 08-nov-2008 - zeromus - big endian wasnt compiling. fix issues. 02-nov-2008 - shinydoofy - added --fcmconvert for SDL diff --git a/src/drivers/sdl/sdl-sound.cpp b/src/drivers/sdl/sdl-sound.cpp index 3f4f4ba4..4e71056d 100644 --- a/src/drivers/sdl/sdl-sound.cpp +++ b/src/drivers/sdl/sdl-sound.cpp @@ -52,8 +52,11 @@ 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); + + // 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; if(s_BufferIn) {