spandex44
Jan 25th, 2000, 12:31 AM
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:
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
Code:
SoundFile$ = "c:\windows\example.wav"
wFlags% = SND_ASYNC Or SND_NODEFAULT
x% = sndPlaySound(SoundFile$, wFlags%)
Please help! Thanks.
------------------
Regards,
Alexander McAndrew
VB Zone
http://vbzone.cjb.net (http://gsenterprise.server101.com)
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:
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
Code:
SoundFile$ = "c:\windows\example.wav"
wFlags% = SND_ASYNC Or SND_NODEFAULT
x% = sndPlaySound(SoundFile$, wFlags%)
Please help! Thanks.
------------------
Regards,
Alexander McAndrew
VB Zone
http://vbzone.cjb.net (http://gsenterprise.server101.com)