|
-
Dec 15th, 2001, 11:26 AM
#1
Playing Wave Files in a form
I've figured out how to play sound through windows media player within a form, but i don't know how to send sound directly to the sound driver. If anybody knows, please tell me.
thnx
-
Dec 15th, 2001, 01:56 PM
#2
Addicted Member
Playing .wav files
Type this in a moduel:
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As Any, ByVal uFlags As Long) As Long
Const SND_ASYNC = &H1
Then, in your form. When ever something happens type this:
sndPlaySound App.Path & "\nameofsoundfile.wav", &H1
Hope this helps!
-
Dec 15th, 2001, 02:07 PM
#3
Good Ol' Platypus
If you wish for program execution to cease, add SND_SYNC from the constants section of the API viewer and use that for your flag.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Dec 15th, 2001, 07:21 PM
#4
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
|