Playing WAV Sounds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    #1

    Playing WAV Sounds

    Hi all,
    Use this code to play wav files in Background.


    Declarations:
    Code:
    Private Declare Function sndPlaySound& Lib "winmm.dll" Alias _
    	"sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long)
     Const SND_SYNC = &H0
     Const SND_ASYNC = &H1
     Const SND_NODEFAULT = &H2
     Const SND_LOOP = &H8
     Const SND_NOSTOP = &H10
    Code to Play Sound

    Code:
    sndPlaySound "Sound Path", SND_ASYNC Or SND_NODEFAULT
    Regards
    >> ALI <<
Working...