示例#1
0
        /// <summary>
        /// Form initialized
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void VirtualMixer_Load(object sender, EventArgs e)
        {
            // Create a new ShowDriver object
            drv = new VirtualMixerDriver();

            // Listen to the FaderChangedValue event, that is fired when feedback is received from ShowCockpit
            drv.FaderChangedValue += Drv_FaderChangedValue;

            // Create a SC Remote Driver API Connector
            api = new SCAPIConnector(drv);

            // Connect to ShowCockpit
            api.Connect();
        }
示例#2
0
        static void Main(string[] args)
        {
            // Create the driver object
            SimpleEchoFunctionsDriver drv = new SimpleEchoFunctionsDriver();

            // Create API connector object
            SCAPIConnector api = new SCAPIConnector(drv);

            // Events Handling
            api.Connected    += Api_Connected;
            api.Disconnected += Api_Disconnected;

            // Connect to ShowCockpit
            api.Connect();

            // Keep the process alive
            while (true)
            {
                Console.ReadLine();
            }
        }