Solved

Playing midi file

Posted on 1998-05-12
6
275 Views
Last Modified: 2010-04-10
How can I play a midi file in borland c++???
0
Comment
Question by:inliner
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:faster
Comment Utility
Use MCI APIs.
0
 
LVL 3

Expert Comment

by:tma050898
Comment Utility
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
0
 

Author Comment

by:inliner
Comment Utility
In borland C++ under DOS
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Accepted Solution

by:
tma050898 earned 100 total points
Comment Utility
As the man says on the Dodge ads, "This changes everything." You never mentioned DOS. The problem with DOS is that you can't simply use an OS provided lib (e.g., Windows/MCI). You are going to either need to write a tremendous amount of code or buy a library from someone. However, I do have some info for you. I called a friend of mine who is a multi-media expert (windows) and he recommended that you buy a library from Matt Ratcliff. Evidently, Matt's supposedly some God in the DOS gaming world. If you can't find any info on him, post me back and I'll get you the name of library.
0
 
LVL 3

Expert Comment

by:tma050898
Comment Utility
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

0
 

Author Comment

by:inliner
Comment Utility
Adjusted points to 100
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now