21-01-2009, 12:04 AM
Very Short and Easy C/P tut.
This will make it so if you change maps with the same music it won't restart the song.
In modDirectMusic7 add this under 'DirectMusic Variables:
In your PlayMidi sub add this at the top:
Don't forget to add an "End If" at the bottom.
In your StopMidi sub add this at the top:
I've tested this and it works.
This will make it so if you change maps with the same music it won't restart the song.
In modDirectMusic7 add this under 'DirectMusic Variables:
Code:
Public CurrentSong As String
In your PlayMidi sub add this at the top:
Code:
If CurrentSong FileName Then
CurrentSong = FileName
Don't forget to add an "End If" at the bottom.
In your StopMidi sub add this at the top:
Code:
CurrentSong = ""
I've tested this and it works.