Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can I Automatically Repeat a MIDI File?

Status
Not open for further replies.

barrytraver

Programmer
Nov 28, 2000
40
0
0
US
I'm writing a program which uses a MIDI file as background music while other things are going on (in this case, a user is entering information in a text box). I'm using the Microsoft Multimedia control, although I know there are other ways of doing it (e.g., Windows Media Player or API calls PlaySound or mciExecute).

I can play the *.MID file, pause it, and resume it as desired, BUT what I haven't figured out how to do is to have the MIDI file automatically repeat (i.e., start again at the beginning) when it is finished.

What's the best way to do this?

Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top