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.
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.
Thanks a lot! It works.