Posts tagged ‘openbsd 4.3’

Playing mp3s on OpenBSD 4.3

You can find XMMS in the ports collection, which is great. XMMS will even play you wav files out of the box. To get mp3s to play, you’ll need to do a little bit more work and also install:

xmms-mad

which you can find in /usr/ports/audio (presuming thats where you put your ports files)

In unix pretty much everything is a file (some people don’t like this), including audio devices. So if you fancy listening to some white noise, just cat a file to /dev/sound :)

Its got to be said, the documentation from the bsd guys is very thorough. Its not good enough for them that they get your mp3s playing. They tell you that wav and au files use little-endian byte ordering and signed linear quantization. You could figure this out by reading the header with hexdump(1). Reading the hex of your audio files, wow, thats a bit hardcore! Having said that, if you cared a little bit more and read up what that meant, you might be a better person. Or maybe a little more bitter….or maybe neither. Who knows! ;) Either way, enjoy the audible goodness!