Proper Sound Output?


Cthulhu32

Still Fresh
Joined
Nov 9, 2010
Messages
21
Location
Denver, CO
I'm about 80% of the way to releasing an alpha version of my NES emulator, but one of the components I have not implemented yet is the sound. The FCEUX emulator generates a consistent streaming wave of all the sounds mixed together, but I have not hooked them up to any type of audio yet. I was hoping Notaz or one of the Wiz emulator developers would have more information about this, but searching the forums I have not been able to find anything.

In Linux the "right" way to do this if you're given nothing but direct memory access is to write your sound to /dev/dsp. The Gp2x wiki pointed here: http://www.oreilly.de/catalog/multilinux/excerpt/ch14-05.htm and I'm comfortable doing it this way.

But is there a better way to do this? Possibly writing directly to a sound buffer in hardware "/dev/mem" or something fancier, or is the /dev/dsp the best way to do this if I'm doing this without any external libraries.
 
Back
Top