inliner
asked on
Playing midi file
How can I play a midi file in borland c++???
Use MCI APIs.
This is a tough question, if you'll increase your points offered from 10 to 100, I'll answer it with something a lot more tangible than use the mci apis
ASKER
In borland C++ under DOS
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Inliner,
Forget my original post. I dug a little deeper and found something for you. This guy (Steven Don) has a FREE 'C' library that you can use. I checked it out and here's an example of how easy it is to use. His home page is http://shd.home.ml.org
1. include his file
#include "MIDIplay.c"
2. and in your program's initialization function
InitFM ();
SetFM ();
3.
// play a midi file called music.mid
LoadMIDI ("MUSIC.MID");
PlayMIDI ();
// stop playing
UnloadMIDI ();
HTH,
Tom
Forget my original post. I dug a little deeper and found something for you. This guy (Steven Don) has a FREE 'C' library that you can use. I checked it out and here's an example of how easy it is to use. His home page is http://shd.home.ml.org
1. include his file
#include "MIDIplay.c"
2. and in your program's initialization function
InitFM ();
SetFM ();
3.
// play a midi file called music.mid
LoadMIDI ("MUSIC.MID");
PlayMIDI ();
// stop playing
UnloadMIDI ();
HTH,
Tom
ASKER
Adjusted points to 100