well i have done this and it works on my computer but , i do not know if works on a normal sound blaster , i have a Audigy Platinum
.. i mix wav souns like this but please test it in your :)

here the project ziped



%include '\lab\vasm\inc\nagoa.inc'




..start:

CONST DIALOG_ID, equ 1000
call DialogBoxParamA,NULL,DIALOG_ID, 0, Dialog1Proc, 0

rotin Dialog1Proc ,hwnd,uMsg,wParam,lParam

switch
case dword WM_INITDIALOG
je wminitdialog
break
case dword WM_COMMAND
je near wmcommand
break
case dword WM_CLOSE
je near wmclose
break
switchend
return

;--------------
wminitdialog:
return

;--------------
wmcommand:
switch
CONST ID_Play, equ 1
case byte ID_Play
call mciSendStringA,'open waveaudio shareable',0,0,0
call mciSendStringA,'play "1.wav" ',0,0,0
call mciSendStringA,'play "2.wav" ',0,0,0
call mciSendStringA,'play "3.wav" ',0,0,0
call mciSendStringA,'close waveaudio',0,0,0
break
switchend
return

;------------
wmclose:
call ExitProcess,0

endrotin
Posted on 2003-03-28 22:26:59 by Nguga
i only heard 1 sound n my pc...chuub! :(
my sndcard is sndblaster
Posted on 2003-03-29 02:35:45 by flotsam
when you click on the button we are suposed to here just one sound that is the mix of this 3 sounds .

well it can be that we can only join 2 sounds with this metod , in normal sound cards.


please say me about that.

try this one with only 2 waves !
Posted on 2003-03-29 11:13:44 by Nguga
i really don't know if i'm not doing it right, but i only hear the app play 1.wav and not both 1.wav and 2.wav. (only the "chub", not the "chub" + bass line).

maybe my sndcard sux :(
Posted on 2003-03-29 12:55:47 by flotsam
Afternoon, Nguga.

I have an Avance AC97 Audio thingy.

All three sounds played in first example.
All two sounds played in second example.

Only the "Mix Wav!" button displays though. No dialog shows (which means that I have to close the example using the task manager).

Cheers,
Scronty
Posted on 2003-03-29 18:08:15 by Scronty
rotin Dialog1Proc ,hwnd,uMsg,wParam,lParam

switch
case dword WM_INITDIALOG
je wminitdialog
break
case dword WM_COMMAND
je near wmcommand
break
case dword WM_CLOSE
je near wmclose
break
switchend
return FALSE ; <--- this is what is in fault


it works on win98 ...

Scronty can you test it know ? again

here the zip file to XP
Posted on 2003-03-29 18:32:25 by Nguga
Scronty !

does your sound blaster normaly plays 2 wave files at same time?

i ask that becouse the normal one does not...

:)

thanks!
Posted on 2003-03-29 18:34:38 by Nguga