This collection of apps can be used to play back MP3s at any bitrate with
no skips, either over an fs-cifs mount or an HTTP request.  (Or NFS,
most likely, but I haven't tried that yet.)

These programs are hacks; they aren't intended to be user-friendly
applications by any stretch of the imagination.

Source code is included.  The binaries were built on QNX 6.0.


The programs:

http-get
	Fetches a file via HTTP and outputs its contents on standard output.
	Usage is
		http-get host port uri
	For example
		http-get myserver.me.com 80 /mp3/Headbang.mp3
	You'll generally want to pipe this into something else, such as
	"madplay -".

play-m3u
	A wrapper around madplay.  It takes a WinAmp-style M3U file as
	its argument.  Really this can be any file with a list of pathnames
	to MP3s, one per line.  It plays them back in random order until
	you kill it, making an attempt to be somewhat smart about shuffling
	(it won't play the same track twice in rapid succession).

m3ud
	Background daemon version of play-m3u.  Takes one argument, which
	can be:

	<filename.m3u>
		Start playing from a new playlist.
	-stop
		Stop playing music.
	-pause
		Pause playback.
	-play
		Resume playback after -pause.
	-next
		Go to next track.
	-prev
		Go to previous track.

madplay
	Audrey version of MADPlay 0.14.2b.

	The Audrey audio module can be tweaked with a few environment
	variables:
		MADPLAY_CARD
		MADPLAY_DEV
			Specify the audio device to use.  For the Audrey
			this shouldn't be needed; the default works.  But
			if you want to run it on your QNX PC you may need
			to select a device.
		MADPLAY_FRAG_SIZE
			The audio fragment size MADPlay should request from
			the sound libraries.  Default is 8192, though the
			libraries seem to max out at 4096.
		MADPLAY_FRAGS_MAX
			The number of fragments MADPlay should ask the sound
			libraries to support.  Default is 32.  Setting it
			higher might help if you still get occasional pauses,
			or then again it might not.

madplay-0.14.2b-patch
	Source patch to get MADPlay to run on the Audrey.  You can find
	the source code at the MAD home page:
		http://sourceforge.net/projects/mad/

This archive is provided as a courtesy to the Audrey hacking community.
If you have questions or comments, please post to the Audrey message board
on www.linux-hacker.net.  I probably won't answer questions about this via
E-mail since I know from experience that that means answering the *same*
question from fifty different people, but I'll be happy to help in public
where everyone can benefit from the discussion.

I intend to evolve this stuff into something a lot more useful -- I want to
use my Audreys as music-playing stations my guests can listen to, so
clearly silly command-line hacks like this aren't the ultimate goal.

-Steven Grimm
 koreth-audrey@midwinter.com
