public Utility(ContentManager contents) { content = contents; blank = content.Load <Texture2D>("blank"); backgroundMusic = content.Load <Song>(@"Audio\BackgroundMusic"); SoundEffects = new AudioSFX(content); MediaPlayer.Play(backgroundMusic); MediaPlayer.IsRepeating = true; }
public Utility(ContentManager contents) { content = contents; blank = content.Load <Texture2D>("blank"); backgroundMusic = content.Load <Song>(@"Audio\BackgroundMusic"); SoundEffects = new AudioSFX(content); song1 = content.Load <Song>(@"Audio\song1"); song2 = content.Load <Song>(@"Audio\song2"); song3 = content.Load <Song>(@"Audio\song3"); MediaPlayer.Play(song1); MediaPlayer.Volume = 1.0f; MediaPlayer.IsRepeating = false; }