The code isn't too horrible, since there isn't that much of it. It's pretty icky, but easy enough to hack of the unneeded parts. The way it plays audio is a little tricky though. There's a constantly-called callback to produce audio to pass to the audio device. I'm not sure how to do the same, but simply creating a wav and playing that will certainly be dead simple until I figure out if there is a better way.