🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Sound Engine anyone?
Does anyone know where I can find a free C / C++ Direct X sound engine capable of playing .wav''s and midi''s? I''ve found the Rex engine in the links section of Gamedev, but no there''s no midi playback unless you pay $$$ and register... I''ve also found a good one called FMOD, but there''s no midi support...
thanks in advance!
Do you really need a midi library?
In Windows, you could do something like this:
mciSendString("open blah.mid type sequencer alias music", 0, 0, 0));
mciSendString("play music from 0", 0, 0, 0);
mciSendString("stop music", 0, 0, 0);
mciSendString("close music", 0, 0, 0);
In Windows, you could do something like this:
mciSendString("open blah.mid type sequencer alias music", 0, 0, 0));
mciSendString("play music from 0", 0, 0, 0);
mciSendString("stop music", 0, 0, 0);
mciSendString("close music", 0, 0, 0);
Timidity does nice MIDI playing, an experimental MIDI to WAVE converter so it sounds good on "all" sound cards. It''s portable too. You just need to plunge it in to work with DirectSound...yes, that''d take more work than doing it with a complete sound engine but still...
I have had the exact same problem. But I finally got midi to play using DirectSound. I might write an article for GD, on how to load and play a midi using DirectMusic
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement