Long time I haven't been in this place. Anyway, now I need some help.
My problem is that I would like to play multiple WAV files at once. How would I be able to do this? Any help appreciated :bigyello:
Printable View
Long time I haven't been in this place. Anyway, now I need some help.
My problem is that I would like to play multiple WAV files at once. How would I be able to do this? Any help appreciated :bigyello:
You could either use the API's in the WAVEMIX32 dll, or DirectSound. Which do you want to use and I'll provide code. You're gonna have to convert the VB6 code to .NET for the WAVEMIX32 stuff, but it should be easy. DirectSound I have a link.
Here's the DirectX9c SDK, which contains many code samples in 3 different programming languages. They even have many DirectSound examples that should help
get you going.
http://www.microsoft.com/downloads/d...DisplayLang=en
And here's a WAVEMIX32 example I done a very long time ago. It needs to be converted to .NET though, but can be done with no trouble. Wavemix32.dll is included. Be sure to put that in your Windows/System32 directory.
Depends what language you are using, if its VB6 then you can use the API to play several asynchronous sounds.
.Net 2.0 has built-in sound support.
I am working in VB.NET (I wouldn't think it would be that hard to realise... /me points at the picture in his sig :P) Unfortunately, since this is a project, I can't use files like that WaveMix DLL since I can't place it into a WINDOWS directory (Security issues at school). I'm kind of thinking about using DirectSound, but I don't want to download that SDK (Unnecessary stress which I don't need).
What I want to do is really have a MIDI playing in the background, while up to two other WAVs can be played on top of that. Thanks for the attempts though.