Playing the previous music

Started by Vel, Thu 02/10/2003 10:52:23

Previous topic - Next topic

Vel

Does anyone have an idea how to play the previous music? I want to play a track whenever the menu GUI is on, and switch back to the previous one once the gui is closed.

Gilbert

Do this:

When the GUI's brought up, first save the music # it's currently playing and then set to new one. Example:

curmusic=GetCurrentMusic();
PlayMusic(10);


When the GUI is about to close, restore it:
PlayMusic(curmusic);

Of course, you may add usual stuffs yourself, like the declaration of the variable curmusic in some appropiate place, etc.

Vel


SMF spam blocked by CleanTalk