예제 #1
0
        private void PlaySongWithLights(string sequenceFile, string musicFile)
        {
            Process ExternalProcess = new Process();

            ExternalProcess.StartInfo.FileName = "/usr/bin/cvlc";
            ExternalProcess.StartInfo.ArgumentList.Add("--play-and-exit");
            ExternalProcess.StartInfo.ArgumentList.Add("--intf");
            ExternalProcess.StartInfo.ArgumentList.Add("dummy");
            ExternalProcess.StartInfo.ArgumentList.Add(musicFile); // song name
            ExternalProcess.Start();

            LightController controller = new LightController(sequenceFile);

            controller.ControlLights();

            ExternalProcess.WaitForExit();
        }