Skip to main content
gamedev.net
🔒 Locked

Another Managed DirectX Problem

Started by Bob Dole 1 reply 800+ views
Original Post
Bob Dole
Bob Dole
As i convert to managed directX, DirectMusic seems to have vanished. How do you play midi files? DirectX use to have Direct Music, but now it only has sound (which only play wav files). I want to be able to control the tempo of my midi files so I dont want to convert 20kb midi files into 10mb wav files. I know there is MCI but how do you import it in managed code?
intrest86
intrest86
Use Microsoft.DirectX.AudioVideoPlayback to play the MIDI files. Specifically, create an Audio object and load that file. Then just call play.
Turring Machines are better than C++ any day ^_~
remigius
remigius
I did a quick search on the codeproject and found this Midi player wrapper library for C#. I haven't tested it, but it looks decent enough, with support for tempo setting.

If you're working with C# a lot, you definately should bookmark the codeproject website. It has a lot of user submitted wrappers for doing all kinds of things in C# that would otherwise require tons of coding or writing your own wrappers.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.