Reminds me of how I nuked my first Linux drive. I was using the cthugha[1] music visualizer app. You had to pass in a CD-ROM device as well as a DSP device (long before ALSA existed). Instead of the DSP I probably passed in my hard drive. Whoops.
I usually spawn "aplay" and pipe audio data into stdin, like it was a file.