No music in Doom 95 under Wine

Has anyone managed to get music to work in Doom 95 under Wine?

I tried it and everything I’ve tested works fine, except for music. I saw in several Ubuntu and other linux forums that in order to make it work one needs to install a thing called Timidity, copy some Timidity patches/codecs to Synaptic Package Manager or to some other directory, or something else…

Any clue about this?

Well, I don’t know anything about running Doom 95 under wine, or patches required, but timidity is available from the OSS repo.

From a terminal, become root with ‘su -’, enter root password when prompted. Then

zypper in timidity

BTW, the Synaptic Package Manager is Ubuntu-specific. Similar to YaST and zypper for openSUSE.

Thanks for the answer. I’ve already realized about Timidity, just installed it with YaST and no changes, meaning there’s something else I must do, Timidity installation has nothing to do with it, or Wine itself cannot run Classic Doom’s MIDI music…

See if anything in this thread helps:

[Wine] No sound using OSS in Steam games](http://www.pubbs.net/200912/wine/75473-wine-no-sound-using-oss-in-steam-games.html)

In particular it mentions configuring winecfg to use OSS (rather than ALSA), and using ALSA’s OSS emulation (alsa-oss package).

I also wanted to mention that alternative native Doom ports exist (just for others searching here) including freedom, prboom, and vavoom (to name a few).

This Wine HQ thread may also be worth a read.

To start with, are you able to play MIDI music at all?

aplaymidi, from alsa-utils, will let you test it. Take http://www.vgmusic.com/music/console/nintendo/snes/Sf2th.mid
I can play it without timidity, but only because I have a SB Live! sound card that can play MIDI without emulation.

Since I don’t need them I don’t have a lot of experience, but I would use fluidsynth instead of timidity. Timidity isn’t updated since 2004…
Something like “fluidsynth -a <alsa|pulseaudio> <soundfount file>” should do the trick. Notice you will need a soundfount file, see SoundFont

I downloaded the midi file, tried to open it, and got a message openSUSE couldn’t find a program to run it. Amarok wasn’t able to run it neither. I was suggested the following programs:

audacious 2.4.2-1.pm.1.1
TuxGuitar 1.2-0.pm.1.1
gnome-mplayer 1.0.0-1.pm.1.1
banshee-1-client-classic 1.6.1-1.15
totem 2.30.2-2.18
rosegarden4 10.04-2.11

I also searched in YaST for “playmidi”, and there was this app:
playmidi 2.4-8.pm.9.1

So I guess I cannot play midi files anyway, but does having the right program matters? With Timidity installed Doom music still didn’t work, so it shouldn’t be a matter of installed programs, but a matter of having the right codecs working in the game, maybe copying them into Doom’s directory, or kind of these stuff. Am I wrong?

I said you what program to use…

aplaymidi, from alsa-utils

1- There is no MIDI playback device (in my case there is)

$ aplaymidi -l
 Port    Client name                      Port name
 14:0    Midi Through                     Midi Through Port-0
 16:0    SB Live! Value [CT4832]          EMU10K1 MPU-401 (UART)
 17:0    Emu10k1 WaveTable                Emu10k1 Port 0
 17:1    Emu10k1 WaveTable                Emu10k1 Port 1
 17:2    Emu10k1 WaveTable                Emu10k1 Port 2
 17:3    Emu10k1 WaveTable                Emu10k1 Port 3

2- Run “fluidsynth -a alsa Documentos/8mbgmsfx.sf2”
3- Now there is a MIDI playback device

$ aplaymidi -l
 Port    Client name                      Port name
 14:0    Midi Through                     Midi Through Port-0
 16:0    SB Live! Value [CT4832]          EMU10K1 MPU-401 (UART)
 17:0    Emu10k1 WaveTable                Emu10k1 Port 0
 17:1    Emu10k1 WaveTable                Emu10k1 Port 1
 17:2    Emu10k1 WaveTable                Emu10k1 Port 2
 17:3    Emu10k1 WaveTable                Emu10k1 Port 3
128:0    FLUID Synth (4403)               Synth input port (4403:0)

4- Play the music through that device

aplaymidi -p 128:0 Sf2th.mid