01-09-2006, 04:40 AM
help me wit this one lol
this code doesnt work... can someone post a code here to play midis that actually work?
Code:
Public Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Public Sub PlayMidi(Song As String)
Dim i As Long
i = mciSendString("close all", 0, 0, 0)
i = mciSendString("open " & App.Path & "\Music\" & Song & " type sequencer alias background", 0, 0, 0)
i = mciSendString("play background notify", 0, 0, frmMirage.hWnd)
End Sub