Hi!
I've asked this question before, but got no reponse:
Is there a way to play a real audio file (using the real audio activex control), while at the same time playing (and hearing) a WAV file. This is the code I used to play the WAV file:
Declarations:
Code:Code:Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _ (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long Const SND_SYNC = &H0 Const SND_ASYNC = &H1 Const SND_NODEFAULT = &H2 Const SND_LOOP = &H8 Const SND_NOSTOP = &H10
Please help! Thanks.Code:SoundFile$ = "c:\windows\example.wav" wFlags% = SND_ASYNC Or SND_NODEFAULT x% = sndPlaySound(SoundFile$, wFlags%)
------------------
Regards,
Alexander McAndrew
VB Zone
http://vbzone.cjb.net




Reply With Quote