Mirage Source
Dont restart musuc? - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Dont restart musuc? (/showthread.php?tid=2501)



Dont restart musuc? - timster0 - 17-01-2009

How can I make music continue playing if I go on a map map with the same music?


Re: Dont restart musuc? - Labmonkey - 17-01-2009

find where the music code is run. Search for playmidi or something. Do a check before it plays the music to see make sure musicplaying newmusic. I dont have mirage infront of me, if you still need help I will elaborate.


Re: Dont restart musuc? - timster0 - 18-01-2009

Would that mean I would have to make a function that checks which music is playing?


Re: Dont restart musuc? - Tony - 19-01-2009

Sigh*

Just go to your play music or w/e sub and do that check before anything.

Do the check so that if it = the current song playing then exit sub.


Re: Dont restart musuc? - timster0 - 19-01-2009

Here is my Play Music thing:

Code:
' Play music
    If Map.Music > 0 Then
        Call DirectMusic_PlayMidi("music" & Trim$(CStr(Map.Music)) & ".mid")
    Else
        DirectMusic_StopMidi
    End If

I don't understand how to check something.


Re: Dont restart musuc? - GIAKEN - 20-01-2009

IF MUSIC = MUSIC THAT IS PLAYING THEN DO NOT ATTEMPT TO PLAY THE MUSIC AGAIN


Re: Dont restart musuc? - timster0 - 21-01-2009

I got it working, posted a tut as well.