Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Don't Restart Music (1/5)
#1
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:
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.
Reply
#2
Thank you. Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)