Advertisement

DirectMusic or DirectSound or both

Started by March 17, 2000 05:34 AM
1 comment, last by Endre 24 years, 8 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
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
Advertisement
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