PDA

Click to See Complete Forum and Search --> : play a short wav-file


WP
Nov 24th, 2000, 01:55 PM
What's the best way to play a short wav-file (eg. for a step)? DX? MultimediaControl?

WP

oetje
Nov 24th, 2000, 02:41 PM
http://forums.vb-world.net/showthread.php?threadid=41397

Wak
Nov 27th, 2000, 11:01 PM
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.