I’m working on the Stella (Atari 2600) emulator. Right now, there is an
external sound server written using OSS. I’m trying to convert it to SDL
sound (so it wil be portable) and re-integrate it into the program (eliminate
the server part).
For some reason, the sound is somewhat ‘choppy’ and delayed in the SDL
version. It’s like the sound is not continuous in SDL. BTW, I’ve tried
different sample rates.
I’ve asked questions on this topic before, but I don’t know if I was really
clear. So this time, I’m providing links to the original OSS code and my
current attempt at an SDL equivalent.
Would someone be able to take a look at both, and tell me what’s missing??
Also, how does one adjust volume in SDL? Right now, the OSS code is changing
the hardware mixer upon start, and restoring it again on exit. Does SDL
support changing the data itself, so that I don’t have to change the
hardware mixer? If so, how? If not, how does one change the hardware mixer
in SDL?
The files are located at:
http://www.cs.mun.ca/~stephena/linux/OSS_orig.c
http://www.cs.mun.ca/~stephena/linux/OSS_sdl.c
Thanks for any info,
Steve