Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public Function Play(uFlags As Long)
Dim Rc As Long
Rc = sndPlaySound(mFileName, uFlags)
End Function
mFileName = "C:\Windows\Media\hello.wav"
Play (uFlags)
DoEvents
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.