Jump to content

Recommended Posts

Guest Gladers
Posted

I want to add midi music ( mid files) to my game.

Any idea how to do that in C#?

The playsound code doesn't work for midi music, only wav files.

I've searched the board and opennetcf board and could not find anything, please help ;)

Guest The Undefeated
Posted

Well on a normal computer you'd just use DirectX to play it, but, i dont know if you can do that with windows mobile, go check it out, if it does work then you can do all sorts of stuff, if not, good luck.

I tried searching for hours trying to find code that played midi files with no luck, so directX it was.

Guest muff
Posted

there is no simple way to do it ;)

MIDI files only store references to instrument samples, unlike MOD's that include the actual samples (one of the reasons that MIDI tracks are small)

the result being that you have to have all the instrument samples that the MIDI track needs on the device, and then you need to write a player that can combine the 2 into an actual piece of music

it's not something that's an easy drop in unfortunately

personally I'd suggest moving to MOD's and using the Hekkus library for sound (http://www.shlzero.com)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.