Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Playing midi file

Posted on 1998-05-12
6
Medium Priority
?
295 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
ID: 1176346
Use MCI APIs.
0
 
LVL 3

Expert Comment

by:tma050898
ID: 1176347
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
ID: 1176348
In borland C++ under DOS
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Accepted Solution

by:
tma050898 earned 300 total points
ID: 1176349
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
ID: 1176350
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
ID: 1176351
Adjusted points to 100
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
  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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

885 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