|
-
Sep 26th, 2003, 02:42 PM
#1
Thread Starter
Member
Sound Problem
I found the post below from NoteMe (2002) regarding playing sounds.
It works with one catch. It only plays the sound when I exit out of the execution. ??? It doesn't play during execution?
Any ideas?
Thanks in advance.
-----------------------------------------------------
Enter this in a code module:
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public Const SND_ASYNC = &H1 ' play asynchronously
and call it fram the form like this:
sndPlaySound soundName, SND_ASYNC
where soundName is a string holding the directory and filename of your wav file...
---------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|