|
-
May 9th, 2002, 06:38 AM
#5
Addicted Member
i dont understand how u make the wave sounds play with a resouce file where do u tell the code the destination of the file in the res file
i use 2 sound modules in the program i make
one:
Option Explicit
Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" _
(ByVal lpsz As String, ByVal hModule As Long, ByVal z As Long) As Long
A = PlaySound("D:\James\Yr 7 game\Sounds\Start.wav", 0, 1) 'plays a sound when the form is loaded
i use this moduel becouse it is simple
i ahve another module that makes sounds repeat
Private Const SND_ASYNC = &H1 ' play asynchronously
Private Const SND_FILENAME = &H20000 ' name is a file name
Private Const SND_LOOP = &H8 ' loop the sound until next
sndPlaySoundPlaySound "D:\James\Yr 7 game\Sounds\Theme.wav", ByVal 0&, SND_FILENAME Or SND_ASYNC Or SND_LOOP 'it will play this sound
can i still play sounds with those modules or so they can repeat and etc
HELP please
thanks alot
Trav
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
|