[linux-audio-dev] ".mid" files playing in Linux games

Mark Constable markc at renta.net
Thu Jan 29 00:43:11 UTC 2004


On Thu, 29 Jan 2004 07:29 am, Tim Goetze wrote:
> Dominic Genest wrote:
> >Yes I am familiar with "mod" files which, more precisely, were born in the
> >Amiga world. Generally speaking, they're best at techno songs.
> >
> >Mine are rather "piano only", classical-like, songs. Those usually sound
> >better with midi sequencers.
>
> timidity comes with a fairly decent set of samples. it might just work
> if you popen(3) it, directing its output to stdout so you can mix it
> into your application's sound. upon EOF, you can simply repeat from
> popen().
>
> iirc, SDL has some MIDI/music capabilities based on timidity, too. but
> i don't really know for sure.

There is also WildMidi that uses Timidity like configs and guspats
but engineered specifically towards being used in games, as it's
mainly a library, with a usable wrapper around it for Timidity like
usage from a shell.

 http://wildmidi.sourceforge.net/

--markc



More information about the Linux-audio-dev mailing list