Quote:
Originally Posted by ShotgunSnipist
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