protected Music(string contentName, SoundDevice device) : base(contentName) { this.device = device; Loop = false; cachedVolume = Settings.Current.MusicVolume; }
public Game(Window window, SoundDevice soundDevice) { new Player("Player"); new TowerTargetFinder(); window.BackgroundColor = Color.Black; InitializeWindowAndSoundDevice(window, soundDevice); new Command(Command.Exit, ExitGame); Add(new InGameCommands()); new MenuController(); ShowMainMenu(); }
protected Music(string filename, SoundDevice device) : base(filename) { this.device = device; }
private void SetupSoundDeviceMock() { var mockSoundDevice = testResolver.RegisterMock<SoundDevice>(); soundDevice = mockSoundDevice.Object; }
protected Video(string contentName, SoundDevice device) : base(contentName) { this.device = device; }
private static void InitializeWindowAndSoundDevice(Window window, SoundDevice soundDevice) { AppWindow = window; SoundDevice = soundDevice; }