private static void PlayFile(string fileName, PlayOption opt = PlayOption.Wait) { var fullName = Path.Combine(Environment.CurrentDirectory, "snd", fileName); if (!File.Exists(fullName)) { Console.WriteLine($"\n{fullName} not found."); return; } try { _wmp.URL = fullName; _wmp.controls.play(); if (opt != PlayOption.Wait) { return; } for (; _wmp.playState != WMPPlayState.wmppsStopped;) { Thread.Sleep(100); } } catch (Exception e) { if (e.HResult != unchecked ((int)0x8001010A)) { Console.WriteLine(e); } } }
public override void ApplyPropertyValues() { Setup.ApplyPropertyValues(); InputOutput.ApplyPropertyValues(); USB.ApplyPropertyValues(); MIDI.ApplyPropertyValues(); #region DefaultMemory Track1.ApplyPropertyValues(); Track2.ApplyPropertyValues(); Track3.ApplyPropertyValues(); Track4.ApplyPropertyValues(); Track5.ApplyPropertyValues(); Rhythm.ApplyPropertyValues(); //Name.ApplyPropertyValues(); Master.ApplyPropertyValues(); RecOption.ApplyPropertyValues(); PlayOption.ApplyPropertyValues(); Assign1.ApplyPropertyValues(); Assign2.ApplyPropertyValues(); Assign3.ApplyPropertyValues(); Assign4.ApplyPropertyValues(); Assign5.ApplyPropertyValues(); Assign6.ApplyPropertyValues(); Assign7.ApplyPropertyValues(); Assign8.ApplyPropertyValues(); Assign9.ApplyPropertyValues(); Assign10.ApplyPropertyValues(); Assign11.ApplyPropertyValues(); Assign12.ApplyPropertyValues(); Assign13.ApplyPropertyValues(); Assign14.ApplyPropertyValues(); Assign15.ApplyPropertyValues(); Assign16.ApplyPropertyValues(); InputFx.ApplyPropertyValues(); TrackFx.ApplyPropertyValues(); BeatFxA.ApplyPropertyValues(); BeatFxB.ApplyPropertyValues(); BeatFxC.ApplyPropertyValues(); InputFxA.ApplyPropertyValues(); InputFxB.ApplyPropertyValues(); InputFxC.ApplyPropertyValues(); TrackFxA.ApplyPropertyValues(); TrackFxB.ApplyPropertyValues(); TrackFxC.ApplyPropertyValues(); #endregion DefaultMemory }
protected override void Compose() { Options = new[] { PlayOption, ExitOption }; PlayOption.SetParent(MainMenu); ExitOption.SetParent(MainMenu); ShipSelector.SetParent(MainMenu); }
public override void ApplyPropertyValues() { Track1.ApplyPropertyValues(); Track2.ApplyPropertyValues(); Track3.ApplyPropertyValues(); Track4.ApplyPropertyValues(); Track5.ApplyPropertyValues(); Rhythm.ApplyPropertyValues(); //Name.ApplyPropertyValues(); Master.ApplyPropertyValues(); RecOption.ApplyPropertyValues(); PlayOption.ApplyPropertyValues(); Assign1.ApplyPropertyValues(); Assign2.ApplyPropertyValues(); Assign3.ApplyPropertyValues(); Assign4.ApplyPropertyValues(); Assign5.ApplyPropertyValues(); Assign6.ApplyPropertyValues(); Assign7.ApplyPropertyValues(); Assign8.ApplyPropertyValues(); Assign9.ApplyPropertyValues(); Assign10.ApplyPropertyValues(); Assign11.ApplyPropertyValues(); Assign12.ApplyPropertyValues(); Assign13.ApplyPropertyValues(); Assign14.ApplyPropertyValues(); Assign15.ApplyPropertyValues(); Assign16.ApplyPropertyValues(); InputFx.ApplyPropertyValues(); TrackFx.ApplyPropertyValues(); BeatFxA.ApplyPropertyValues(); BeatFxB.ApplyPropertyValues(); BeatFxC.ApplyPropertyValues(); InputFxA.ApplyPropertyValues(); InputFxB.ApplyPropertyValues(); InputFxC.ApplyPropertyValues(); TrackFxA.ApplyPropertyValues(); TrackFxB.ApplyPropertyValues(); TrackFxC.ApplyPropertyValues(); }