🎉 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!

DirectMusic or DirectSound or both

Started by
1 comment, last by Endre 24 years, 3 months ago
Hello all. I''m working on my first game and want to add music and sound effects to it. I''m coding the game in VB and DirectX. Can I use directMusic for the background music and then directSound for the sound effects or should I use only one of them? Thanks Endre
Advertisement
Sure. As far as I know, there''s no problem using both since DirectMusic plays MIDI and DirectSound plays sounds like wav.

It depends on what kind of sound you will be using. You can have DirectSound playing sound effects while another DirectSound buffer streams a bigger music file from disk.

============================
Daniel Netz, Sentinel Design
"I'm not stupid, I'm from Sweden" - Unknown
============================Daniel Netz, Sentinel Design"I'm not stupid, I'm from Sweden" - Unknown
In fact, if you want to use DirectMusic you need to use DirectSound.
Although DirectMusic can play midi files, the main idea behind it is the software synthesiser. It basically reads MIDI data and outputs as waves of instrumental notes.

cya

This topic is closed to new replies.

Advertisement