Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (hpvDest As Any, hpvSource As Any, ByVal cbCopy As Long)
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Const SND_ASYNC = &H1
Private Const SND_MEMORY = &H4
Private Const SND_LOOP = &H8
Private Sub Command1_Click()
If Command1.Caption = "Go" Then
Command1.Caption = "Stop"
Timer1.Interval = Text1.Text
Label3.Caption = Timer1.Interval
Else
Command1.Caption = "Go"
sndPlaySound 0, 0
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub HScroll1_Change()
Text1.Text = Str(HScroll1.Value)
End Sub
Private Sub hscroll1_scroll()
HScroll1_Change
End Sub
Private Sub Timer1_Timer()
If Command1.Caption = "Stop" Then
a = sndPlaySound("C:\Documents and Settings\lalis.jiménez.000\desktop\david\programacion\visual basic\descargas\metronome\beat.wav", SND_LOOP + SND_ASYNC)
End If
End Sub