Link to home
Start Free TrialLog in
Avatar of inliner
inliner

asked on

Playing midi file

How can I play a midi file in borland c++???
Avatar of faster
faster

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
Avatar of inliner

ASKER

In borland C++ under DOS
ASKER CERTIFIED SOLUTION
Avatar of tma050898
tma050898
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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

Avatar of inliner

ASKER

Adjusted points to 100