tested and the code does improve sdl sound

This commit is contained in:
punkrockguy318 2008-11-10 12:18:19 +00:00
parent c55d1de368
commit 90be81cd07
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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) {