Advertisement

Does anyone know how to use DirectSound?

Started by April 08, 2003 03:00 PM
1 comment, last by FrancoisSoft 21 years, 9 months ago
Hi, I''m programming a game but I have to change the way I play the background music because its giving my games a lot of bugs. I need to learn DirectSound as soon as possible. If you can point me to any tutorials or give me hint I will be greatful. Hey, don''t forget to visit my page... by clicking here!
Did you look at MSDN?
Advertisement
Unfortunately there are a lot of ways of doing the same thing, this seems to be a Microsoft trait. You can use direct music for just playing a wav file at a specific point so if you want to write a tracker-like music player it's actually very easy.

You can use directsound for direct control of a sound buffer.. useful for live effects (DSP) and custom mixing if you need it (it will auto mix for you though if you want it to). Custom mixing is a bit more tricky because you have to synchronise everything and getting it working smoothly can be a headache.

Again though, just playing a wave isn't too hard (but unlike the direct music method, you can't just 'load' the wav file, you must parse it yourself).

I've used both methods so I can help. What exactly do you want to do..?

Mark
Bytten Independent Games Magazine
http://www.bytten.com
Sound Effects For Game Developers
http://www.indiesfx.co.uk

[edited by - Mark Sheeky on April 8, 2003 5:29:24 PM]

This topic is closed to new replies.

Advertisement