Advertisement

Sound Engine anyone?

Started by November 18, 2000 11:15 AM
4 comments, last by En3my 23 years, 11 months ago
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);



Advertisement
FMOD has midi support. Perhaps you got an old version.
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...
Check out the BASS engine. I think it does Mp3, wav, midi, mod, etc.
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
"To some its a six-pack, to me it's a support group."

This topic is closed to new replies.

Advertisement