Hello all,
I have stumbled across something I find very strange. I have following code, but in the “playing” GameState the volume wont change.
It works in “MainMenu” GameState.
Do i do something wrong?
switch(currentGameState)
{
case GameState.MainMenu:
{
if(isMainMenuSongPlaying == false)
{
//MediaPlayer.IsRepeating = true;
MediaPlayer.Play(mainMenuSong);
MediaPlayer.Volume = 0.1F;
isMainMenuSongPlaying = true;
}
break;
}
case GameState.Playing:
{
if(isIngameSongPlaying == false)
{
MediaPlayer.Stop();
isMainMenuSongPlaying = false;
MediaPlayer.Play(ingameSong);
MediaPlayer.Volume = 0.1F;
isIngameSongPlaying = true;
}
}