Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Endre

DirectMusic or DirectSound or both

This topic is 6672 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!