PDA

View Full Version : midi music not playing


hatred
July 13th, 2004, 09:08 AM
Linux 2.6.7, ALSA 1.0.5, SB Live! 5.1
when i start llxdoom, with musserver, i don't have music, i want playing music with hardware sequenser... but... Must I load specific SoundFonts? or... I try some parameters for museserver, but it doesn't work. Please help.

PS sorry for my bad english ;-)

Planky
July 13th, 2004, 02:08 PM
Have you tried the other executable (I forget what it is called...)?

MR_ROCKET
July 15th, 2004, 12:52 PM
hey we need a linux guy in here :P

Planky
July 15th, 2004, 02:13 PM
On a sidenote, you may need timidity installed, if you haven't got it.

Hurdler
July 15th, 2004, 03:04 PM
In fact, no, he doesn't need the Timidity patch installed because he wants to use the hardware sequencer. Timidity is for playing midi in software (and is available with the lsdldoom executable).

Now, about playing midi in hardware with musserver is something I haven't succeeded yet (I got a patch in the past but couldn't test it at that time :() I could do a big search if really necessary, or try to figure out why it doesn't work, but I'm not a sound specialist :(

hatred
July 15th, 2004, 07:46 PM
mmm...
lsdldoom use SDL_mixer for sound output, i compile SDL_mixer with native midi support...
his playmus example programm now playing midi on hardware sequencer (i don't include timidity support)... but lsdldoom now.... mmm.... hang (зависает ;-) on startup.

if i find solution for this problem, i send it ;-)

uhhh ;-)

Pate
July 16th, 2004, 02:41 AM
Does lsdlsoom really use SDL Mixer? I think it uses the minimal sound system that comes with SDL. The C++ version does use SDL Mixer.

smite-meister
July 16th, 2004, 04:20 AM
It does now, I guess Hurdler added it to v1.42.

Hurdler
July 16th, 2004, 04:36 AM
No, I haven't added it to 1.42. It has always been there (at least since 1.40). That's what the HAVE_MIXER=1 flag do and Metzgermeister wrote it.

Hurdler
July 18th, 2004, 05:00 AM
BTW, you might try this as the musserver and see if it works better:
http://sourceforge.net/project/showfiles.php?group_id=3586&package_id=3730

cogline
August 2nd, 2004, 01:07 PM
If you haven't found a solution yet, here's what you need to do to get musserver working with SBLive:

Install ALSA with sequencer and OSS support.

If you run "musserver -l" you should see something like this:
Found a midi device of type 0 (EMU10K1 MPU-401 (UART))
Found a midi device of type 0 (Emu10k1 Port 0)
Found a midi device of type 0 (Emu10k1 Port 1)
Found a midi device of type 0 (Emu10k1 Port 2)
Found a midi device of type 0 (Emu10k1 Port 3)
Found a synth device of type 1 (Emu10k1)

Next you must load a soundfont. The SBLive doesn't have any sounds loaded in ROM. Use asfxload (http://www.alsa-project.org/~iwai/awedrv.html) to load your favourite soundfont.

In your configuration file (found in ~/.legacy), set "-t 20 -m -v" as arguments for musserver. In fact, just removing "-u 0" should do the trick. "-u 0" forces musserver to use the first midi device of type 0 that it finds (the MPU-401) and unless you have an external MIDI device you won't hear anything.

Start llxdoom and you should get output similar to this from musserver:
Starting music server [./musserver -t 20 -m -v ]
Playing music for DOOM II
Using midi device number 5 (Emu10k1 Port 3)
Using midi device number 5 (Emu10k1 Port 3)
musserver: using ./doom2.wad
musserver: ready

Music should now play beautifully..

You can remove the -v musserver argument if things work. It just adds some extra diagnostic output. If things don't work, you can add even more "-v" arguments to get an even more talkative musserver.