- The playlist GUI does not quite behave correctly (the right-hand scroll box does not scroll correctly).
- The patch doesn't seem to like to work too well on Linux (not tested it with any other operating systems, well, apart from OS/2). I found that you had to comment out the fclose() command in music/decoders/ogg.c in ogg_close_file to stop it crashing after every song (probably a race condition... indeed, I wonder, it might be calling the new ogg_open_file before ogg_close_file on the old one perhaps - will maybe do some more investigation). Anyway. That's a bit broken, unless you hack it up a bit. Also, when I tried playing an MP3 file on Linux, it played it at a much faster rate than it should have... seems to be an issue with the buffering code. If someone wants to look into these issues, I'd really appreciate it.
- If you play a file that isn't 44.1KHz, it will not sound very nice.

How to use this thing, then... for a start, it plays MIDI (through the existing driver system), MP3 (using libmad) and Ogg Vorbis (using vorbisfile, part of libvorbis - you need libogg as well, though). If you don't provide an openttd.m3u file, the game will just use the standard MIDI files, as in older versions, if it can find them. However, if you create an openttd.m3u file, it will try to play this instead. Winamp M3U files should work fine, otherwise, you can just create a text file in Notepad with the following format:
Song 1
C:\music\song1.mp3
Faithless - Insomnia
/home/orudge/music/Faithless - Insomnia.ogg
TTD Title Theme
music/gm_tt00.gm
(ie, title on one line, song on the next)
OpenTTD currently supports a maximum of 100 songs in the playlist. Any more than that will be ignored.
A sample M3U is provided with the Win32 version in this archive. To use it, download the FM MP3s from http://users.tt-forums.net/jfs/ and place them in the fm-mp3s directory.
The makefile doesn't automatically detect libmad, libogg or libvorbis at the moment, you must call make with WITH_VORBIS=1 WITH_MP3=1 parameters.
Hmm, there's probably more I should say, but I can't really think of much just now. Have fun, let me know about any problems you have - particularly on systems other than Windows - and if you are able to help fix those problems, it'd be even better!
As for the attachments, it should be fairly self-explanatory:
openttd-music-r3289-2005-12-11.diff is the diff against r3289 (don't worry, it upgrades fine to the latest SVN without any conflicts). I find TortoiseSVN seems to have some trouble creating the music/decoders directory and doing things with that, though, so you may want to extract those files from the source RAR.
openttd-music-win32-r3317m-18-12-05.rar is the Win32 version of the patch, against the latest SVN as of right now. Hopefully everything is included that is needed.
openttd-music-fullsrc-r3317m-18-12-05.rar is the full source code, which should compile out of the box, if you're lucky.
Again, have fun, and please let me know of any bugs, etc! I'm not submitting this to SourceForge yet as it is indeed incomplete, but I'd like to see what everyone thinks. It's taken me a long time to get this done, partially due to lack of time and partially due to laziness, but here it is at last.