View Single Post
Old 06-07-2008, 07:14 PM   #35 (permalink)
LedZepp
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default

Quote:
Originally Posted by ShotgunSnipist View Post
Okay, So how do you make the music stop?

gameMode = GameMode.Song; starts it right?



Basically, Here's my code that I changed. It... works....

Code:
            if (gameMode == GameMode.Black)
            {
                if (MediaPlayer.State == MediaState.Playing)
                    ts -= gameTime.ElapsedGameTime;
                if (ts >= new TimeSpan(0, 0, 0))
                {
                    MediaPlayer.Volume -= .99f;
                }
                else
                {
                    MediaPlayer.Volume += .99f;
                }
No, gameMode = GameMode.Song;(i created this variable)
Shows the music selection screen.
MediaPlayer.Play((your songCollection variable, in my app its songs)) starts the music, and MediaPlayer.Stop() stops the music, MediaPlayer.Pause() pauses the music and MediaPlayer.Resume() resumes the current music




LedZepp is offline   Reply With Quote