23-07-2008, 04:08 AM
Robin Wrote:Mark, that tutorial doesn't handle how to do it in Mirage itself so it's made obsolete by Jsventor.
Jsventor, it's pretty nice but I don't understand why you have to load the midi then play it.
I quickly merged those two together:
Code:Public Sub PlayMidi(filename As String)
On Error Resume Next
Set Segment = Loader.LoadSegment(filename)
If Err.Number DD_OK Then MsgBox "Error: Could not load MIDI file!", vbExclamation, "ERROR!"
Preformance.PlaySegment Segment, 0, 0
End Sub
Delete LoadMIDI and replace PlayMidi with the above.
I honestly didn't even think of that.. wow, thanks, I'm trying to learn DX right now, so, although I might post things that work I'm not sure if its the best methods I'm using, so the help is always appreciated
