Instructions for building mpg123-0.59r for Plan9 ------------------------------------------------------------ 1) download the distribution from http://www.mpg123.com/ 2) replace the following files with the ones from this tar file: Makefile getlopt.c httpget.c mpg123.c mpg123.h xfermem.c You should just be able to extract the tar from the directory above the mpg123-0.59r distribution. 3) bind -b /bin/ape /bin 4) mkdir /tmp/c89 5) cp /bin/cc /tmp/c89/c89 6) bind -b /tmp/c89 /bin 7) make 8) This will create a binary called "mpg123" in the current directory. Copy it into wherever you want it to run from ($home/bin/$objtype/bin, or /$objtype/bin are two likely locations) ------------------------------------------------------------ To play an mp3: rc% mpg123 -s filename > '#A/audio' ------------------------------------------------------------- TODO: A) I tried specifying a URL as the input file, but it crashed, and I haven't had a chance to debug the problem. If anyone feels like fixing it, let me know and I'll integrate it and post it back up here for everyone else. B) It would probably be worthwhile to integrate support for the plan9 audio device directly into mpg123 so you can use the command line options for setting the volume and whatnot. -------------------------------------------------------------