Click to See Complete Forum and Search --> : Playing multiple Wav files at once
planetmess
Feb 18th, 2000, 02:42 AM
Hi,
Is there a way to play multiple wav files at once in VB5 WITHOUT having to use DX or an ActiveX control (maybe with the winmm.dll or sndPlaySound)?
I already have the ASprite control, but I don't really want to have to require DX on the system for it to have this functionality if at all possible.
Thanks for any help you can provide!
Fox
Feb 18th, 2000, 04:32 AM
Last time I tried to do this it worked with SndPlaySound. Here's my code:
-
sndPlaySound "C:\Test.wav", 1
-
------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.
planetmess
Feb 18th, 2000, 04:42 AM
Sorry, that didn't work. Here's my code based on what you just told me:
sndPlaySound "c:\...\sound1.wav", 1
sndPlaySound "c:\...\sound2.wav", 1
It only plays sound2.wav. Did I miss something here or do you have any other ideas? Thanks again!
SamFunk
Feb 18th, 2000, 08:49 AM
Hello!!
Yes...there is a way... you need to get the
WAVMIX32.DLL
It's alot of code to hook it up, but it allows you to play 8 sounds at once!!
I'll see if I can scrounge up the demo I got for it...
Let me know where I can send it if you want it!
~Sam
SamFunk
Feb 18th, 2000, 09:08 AM
Plantemess...
If you want to get a hold of me for the source... drop me a line at SAMFUNK@HOTMAIL.COM
(..It takes me a while to check my mail.. )
~sam
planetmess
Feb 18th, 2000, 12:13 PM
Hi Sam,
I found the file. Do you have any sample code and/or an API reference or know where I can get one?
Thanks!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.