public void FftProperty() { using (var gameController = new GtGameController( Factory, new GtFileLoader(), new SongPlayerDoNothing(), new AudioEffectsDoNothing())) { Assert.IsNotNull(gameController.AudioListener.FftData); } }
public void AudioEffectsProperty() { var audioEffects = new AudioEffectsDoNothing(); using (var gameController = new GtGameController( Factory, new GtFileLoader(), new SongPlayerDoNothing(), audioEffects)) { Assert.AreSame(audioEffects, gameController.AudioEffects); } }
public XnaGame(GtGameController pGameController) { this.Window.Title = "Guitarmonics"; this.IsFixedTimeStep = true; this.GameController = pGameController; this.fUser1ActionListener = new GtUserActionsListener(); GraphicsDeviceManager = new GraphicsDeviceManager(this); GraphicsDeviceManager.PreferredBackBufferWidth = this.Width; GraphicsDeviceManager.PreferredBackBufferHeight = this.Height; GraphicsDeviceManager.IsFullScreen = true; if (!GraphicsDeviceManager.IsFullScreen) { GraphicsDeviceManager.ApplyChanges(); } Content.RootDirectory = "Content"; }