timidity++ support is required to play midi files which are part of the game Reproducible: Always Steps to Reproduce: 1. 2. 3.
There is also an optional ogg music project in the works at http://www.stevenkeys.com/xu4.cfm this would eliminate the timidity++ dependency when it is completed.
There is a problem of compatibilty versions between timidity++ and sdl-mixer. I added the keyword "soundfount /path/blabla" to my config file /etc/timidity.cfg to set up midi configuration. Timidity plays fine any of my .mid files. When starting xu4 it says "xu4: warning: unable to load music file /usr/games/lib/u4/music/Towns.mid: timidity.cfg: line 25: syntax error". On line 25 of /etc/timidity.cfg is the soundfont keyword. I investigate a little bit by looking at the sources of xu4 and sdl-mixer. Xu4 is using a function call to sdl-mixer library. Actually, this is sdl-mixer library that returns the syntax error to xu4. Looking in sdl-mixer sources, it fails at parsing /etc/timidity.cfg because the keyword "soundfount" (valid for timidity) is not yet implemented. xu4-0.9 and library versions : sdl-mixer-1.2.5-r1 or sdl-mixer-1.2.6 and timidity++-2.13.2
So there is a bug in SDL-mixer that is causing this?
Feel free to REOPEN this with the answer or a patch...
No reply. Closing.
No, SDL-mixer plays the files fine. It is something with xu4. I spoke with the developers a couple of times and they do not have any 64-bit machines to test it on. This happens in Fedora Core 4 and SUSE 10 as well. Only with amd64.
See previous comment.
A check for sdl-mixer without midi support as been put in the ebuild.