I use the following API to play .WAV (Wave) files :
' Declaration in a module :
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
' Code used to play sound :
sndPlaySound ByVal CStr(WAVEs.Path & "\" & WAVEs), 1
I know that the WinMM.dll has the functionality to play .MIDI files as well, but I can't figure out how to do it. Please provide code similar to the above code on how to play a .MID (MIDI) file using an API from this or a similar .DLL.