What's the best way to play a short wav-file (eg. for a step)? DX? MultimediaControl?
WP
Printable View
What's the best way to play a short wav-file (eg. for a step)? DX? MultimediaControl?
WP
option explicit
Private Declare Function sndPlaySound _
Lib "winmm.dll" Alias "sndPlaySoundA" ( _
ByVal lpszSoundName As String, _
ByVal uFlags As Long _
) As Long
Private Sub Form_Load()
sndPlaySound("C:\WINDOWS\MEDIA\start.wav", &H1)
End Sub
This should do the trick.