public MainWindow(string path)
 {
     InitializeComponent();
     DX.ChangeWindowMode(1);
     DX.SetWaitVSyncFlag(0);
     DX.SetWindowVisibleFlag(0);
     DX.SetAlwaysRunFlag(1);
     if (DX.DxLib_Init() == -1)
     {
         DX.DxLib_End();
         Console.WriteLine("[DEBUG]DirectX の初期化に失敗しました。");
         Application.Exit();
     }
     _seq = new Sequencer();
     _sndmodule = new SoundModule();
     //MessageBox.Show(System.IO.Path.GetDirectoryName(Application.ExecutablePath));
     backgroundWorker1.RunWorkerCompleted += backgroundWorker1_RunWorkerCompleted;
     //backgroundWorker1.RunWorkerAsync();
     timer1.Start();
     if (path != null)
     {
         Load(path);
         Play();
     }
 }
Example #2
0
		public Sequencer()
		{
			Sm = new SoundModule();
			Reset();
		}