[OT slighly] SDL_Mixer and timidity -- need help

hi all,

doom legacy’s SDL based executable, lsdldoom, uses SDL_mixer to play the
background midi music.

i’m trying to figure out why doom legacy doesn’t play the nice
background midi music when i play doom on my debian testing system.

there is a thread on newdoom.com about this:

http://forums.newdoom.com/showthread.php?s=&postid=173446#post173446

supposedly, there’s an environment variable that tells SDL_mixer where
timidity is, but i’m having trouble finding what this environment
variable is. does anybody know?

in addition, i’m having a very difficult time trying to verify that
SDL_mixer knows ANYTHING about timidity at all!

p at satan$ cd /usr/lib
p at satan$ grep -i timidity SDL
p at satan$ strings SDL | grep -i timidity
p at satan$ cd /usr/include/SDL/
p at satan$ grep -i timidity *
p at satan$

nothing. there’s no sign that anything in SDL knows anything about
timidity at all.

here’s the packages installed on my debian testing system:

p at satan$ COLUMNS=110 dpkg -l “libsdl*” | grep -v 'no description available’
libsdl-image1.2 1.2.3-2 image loading library for Simple Di
libsdl-image1.2-dev 1.2.3-2 development files for SDL 1.2 image
libsdl-mixer1.2 1.2.5-3 mixer library for Simple DirectMedi
libsdl-mixer1.2-dev 1.2.5-3 development files for SDL1.2 mixer
libsdl-net1.2 1.2.5-3 network library for Simple DirectMe
libsdl-net1.2-dev 1.2.5-3 Development files for SDL network l
libsdl-ttf1.2 1.2.2-5 TrueType font library for Simple Di
libsdl-ttf1.2-dev 1.2.2-5 development files for libsdl-ttf1.2
libsdl1.2-dev 1.2.6-2 Simple DirectMedia Layer developmen
libsdl1.2debian 1.2.6-2 Simple DirectMedia Layer
libsdl1.2debian-all 1.2.6-2 Simple DirectMedia Layer (with all

any ideas why doom legacy’s lsdldoom isn’t playing midi?

should i be seeing references to timidity in the strings output of SDL_mixer?

thanks!
pete–
Make everything as simple as possible, but no simpler. – Albert Einstein
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D

supposedly, there’s an environment variable that tells SDL_mixer where
timidity is, but i’m having trouble finding what this environment
variable is. does anybody know?

From SDL_mixer/timidity/config.h:

/* You could specify a complete path, e.g. “/etc/timidity.cfg”, and
then specify the library directory in the configuration file. */
#define CONFIG_FILE “timidity.cfg”
#ifdef WIN32
#define DEFAULT_PATH “\TIMIDITY”
#else
#define DEFAULT_PATH “/usr/local/lib/timidity”
#endif

It looks for /usr/local/lib/timidity/timidity.cfg, which tells it where
instrument patches, etc are…it might try the current working directory
for timidity.cfg, too…if this file isn’t found, MIDI playback silently
fails.

–ryan.