windowsxp168

how can you get directsound to multiple sounds at the same time using vb.net

Re: Game Technologies: DirectX 101 using directsound to play multiple sounds

LKeene

I'm learning DirectSound (unmanaged) at the moment - I have a question posted further down - so I don't know the exact answer to this. However, assuming the individual sounds are the same resolution and sampling rate, you should be able to just sum the contents of the buffers to generate a final sound buffer which you can then "Play()". After all, this is how sound is added in reality...a simple linear summation of multiple waveforms to generate a final waveform we perceive as the resultant sound.



Re: Game Technologies: DirectX 101 using directsound to play multiple sounds

Bad Habit

You can also use an event mechanism and then add sound channels to it when needed and release them when done. Im doing it as unmanaged code too so Im not to sure how you would do it as managed, I'm sure the principles the same.





Re: Game Technologies: DirectX 101 using directsound to play multiple sounds

LKeene

Found this. Not VB.NET though:cedric.brun.free.fr/articles/139.rtf