X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/63419029fbda7d3f2f3d5984c3d2c77f341dbd79..2d3615a1fe7ea09e23da999090a8fbea19c5d646:/SuperPolarity/SuperPolarity.cs diff --git a/SuperPolarity/SuperPolarity.cs b/SuperPolarity/SuperPolarity.cs index f5ff48e..7fa387c 100644 --- a/SuperPolarity/SuperPolarity.cs +++ b/SuperPolarity/SuperPolarity.cs @@ -29,8 +29,8 @@ namespace SuperPolarity Screen EntryScreen; - protected Song TitleSong; - protected Song GameSong; + protected SoundEffect GameSong; + protected SoundEffectInstance GameSongHandle; protected SoundEffect GameOverSound; public SuperPolarity() @@ -40,8 +40,8 @@ namespace SuperPolarity Components.Add(new GamerServicesComponent(this)); graphics.PreferMultiSampling = true; - graphics.PreferredBackBufferWidth = 1280; graphics.PreferredBackBufferHeight = 720; + graphics.PreferredBackBufferWidth = 1280; //graphics.ToggleFullScreen(); Content.RootDirectory = "Content"; @@ -85,7 +85,8 @@ namespace SuperPolarity { MediaPlayer.IsRepeating = true; - GameSong = Content.Load("Sound\\polaritytheme.wav"); + GameSong = Content.Load("Sound\\polaritytheme"); + GameSongHandle = GameSong.CreateInstance(); GameOverSound = Content.Load("Sound\\gameover"); // Create a new SpriteBatch, which can be used to draw textures. @@ -144,7 +145,7 @@ namespace SuperPolarity // temp stuff before media manager is in if (songName == "game") { - MediaPlayer.Play(GameSong); + GameSongHandle.Play(); } } @@ -153,7 +154,7 @@ namespace SuperPolarity var scoreScreen = new ScoreScreen(this); scoreScreen.Initialize(); - MediaPlayer.Stop(); + GameSongHandle.Stop(); GameOverSound.Play(); ScreenManager.Pop(); ScreenManager.Push(scoreScreen);