Page 1 of 1

Midi music in Linux?

Posted: Thu Apr 24, 2008 5:33 pm
by Xamindar
I'm not quite sure what I need to get the music to play in linux these days. I have d1x-rebirth and d2x-rebirth working wonderfully in linux and I thank you so much for that. Last thing to get working for me is the music, I guess mainly the midi in D1. I miss that music so much. D2 I can just use the cd I think.

I need to do more testing on my system to see if I even have midi working. Does D1x-rebirth use timidity? Or is there something else I need to set up for it to work?

Posted: Fri Apr 25, 2008 3:04 am
by zico
Hey

For the next version of DXX we are planning a working implementation of SDL_mixer which will not only allow MIDI but also MPĀ§ and OGG playback. Actually this is the last task before the release and I will spend a bit time to make it working properly.

Posted: Fri Apr 25, 2008 4:13 pm
by Xamindar
Wow, that sounds cool

As for timidity, it looks like it is my system. I just don't have it working yet. Well, off I go to read and read until I find out how to get it working.

Posted: Sat Apr 26, 2008 4:06 pm
by Xamindar
Ok I got midi working and can play midi music in linux now......but d1x-rebirth still doesn't play the music. Does it even work? Or is there a command line switch that can turn it on?

Posted: Sat Apr 26, 2008 4:28 pm
by zico
If you have timidity working, you could compile D1X-Rebirth with \"sdlmixer=1\" flag for SCons. Of course you need SDL_mixer installed for this, too. Then MIDI should play already, but it's not finished yet, so please do not expect it completly bug-free. :)

Posted: Sun Apr 27, 2008 1:26 am
by Xamindar
hmmm...I installed it with an ebuild on gentoo..

When I launch the game it spits out \"Using plain old SDL audio\" in the console. Is that right?

Posted: Sun Apr 27, 2008 3:32 am
by zico
Ah, I forgot, you need to apply the command-line parameter -sdlmixer when launching the game as well. :)

Posted: Sun Apr 27, 2008 3:17 pm
by Xamindar
oh haha. Thanks! That did it....