It looks to me as though DirectX can natively only play one sound at a time. In order to get multiple sounds overlapping, do I once again have to program my own mixer like I did in DOS and then send the mixed data to DirectSound to play?
It looks to me as though DirectX can natively only play one sound at a time. In order to get multiple sounds overlapping, do I once again have to program my own mixer like I did in DOS and then send the mixed data to DirectSound to play?
Microsoft DirectX 8.1 SDK > DirectX SDK Help > DirectX Documentation for C++ > Search > "mixing sounds"
You should find a document that starts with the following paragraph:
"It is easy to mix multiple streams with DirectSound. You simply create secondary sound buffers, obtaining an IDirectSoundBuffer8 interface for each sound. You then play the buffers simultaneously. DirectSound takes care of the mixing in the primary buffer and plays the result. (...)"
Sounds like this is exactly what you are looking for. You may also take a look at article "Creating secondary sound buffers."
Thx all. I figured it out as soon as I posted. I'm not exactly using the SDK help file since its so convoluted.
I've got the sound working and now I'm working on some classes for DirectInput.