[Gambas-user] Playing Midi files

daniel danielcampos at ...277...
Sat Dec 6 12:46:12 CET 2003


Why not using WAVs or MP3 instead of midi?

It is true midi is a problem in Linux, but, for a game, you can use
pure sounds instead of midi, I think it is not a problem for yor game...

Regards,

Daniel Campos


> One way would be to just use playmidi which is included with most distros
> 
> SHELL "playmidi somesong.mid"
> 
> However, midi is often not available in Linux because
> A. Some of the real cheap built-in sound cards don't do midi
> B. There seems to be a lot of alsa drivers that don't support midi
> 
> So a more reliable way is to use timidity, which does it in software
> And is always avalable to the program if the user has a sound card
> 
> The disadvantages to this method are
> A. you have to make timidity a dependency of your app
> B. Timidity sucks a lot of CPU, which may be a problem in a game
> 
> On Friday 05 December 2003 11:14 am, Benoit Minisini wrote:
> > On Thursday 04 December 2003 10:02, Devilyn wrote:
> > > Been waiting! Any progress with on playing MIDI files? Using SDL
> > > component? Need this for RPG game.
> > >  Devilyn
> >
> > Mmmm... SDL has nothing to do with playing Midi file. I think you must
> > lauch an external program to do that. I don't have much information about
> > how to do that...
> >
> > Regards,
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list