This is how I am currently playing sound files (wav) using
#sndio on #OpenBSD
(if you start browsing make sure to stay on the 'win_draw' branch)
I learned some sndio and did some FFI in Scheme
This snippet plays a sine wave, and if you structure the code differently it allows you to livecode audio (directly on the audio thread, bytebeat-style). There is a crappy example at the bottom, for use with guile --listen + geiser-connect in another terminal window
I've got some more thoughts in the README, about livecoding audio synthesis approaches