Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Playing midi file

Posted on 1998-05-12
6
Medium Priority
?
293 Views
Last Modified: 2010-04-10
How can I play a midi file in borland c++???
0
Comment
Question by:inliner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.
Suggested Courses

721 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