tested and the code does improve sdl sound
This commit is contained in:
parent
c55d1de368
commit
90be81cd07
|
@ -1,4 +1,5 @@
|
||||||
---version 2.0.4 yet to be released---
|
---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)
|
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.
|
08-nov-2008 - zeromus - big endian wasnt compiling. fix issues.
|
||||||
02-nov-2008 - shinydoofy - added --fcmconvert for SDL
|
02-nov-2008 - shinydoofy - added --fcmconvert for SDL
|
||||||
|
|
|
@ -52,8 +52,11 @@ fillaudio(void *udata,
|
||||||
// debug code
|
// debug code
|
||||||
//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);
|
||||||
|
|
||||||
|
// ensure that we're not writing garbage data to the soundcard
|
||||||
if(s_BufferWrite > s_BufferRead)
|
if(s_BufferWrite > s_BufferRead)
|
||||||
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