Exemplo n.º 1
0
        public void SubscribeToDevice(Device pDevice)
        {
            if (mSubscribedDevice.Contains(pDevice))
            {
                return;
            }

            pDevice.OnMidiValueChanged += new OnMidiValueChangedDelegate(pDevice_OnMidiValueChanged);
            pDevice.Subscribe();
            pDevice.Start();
        }
Exemplo n.º 2
0
        public void SubscribeToDevice(Device pDevice)
        {
            if (mSubscribedDevice.Contains(pDevice))
            {
                return;
            }

            pDevice.OnMidiValueChanged += new OnMidiValueChangedDelegate(pDevice_OnMidiValueChanged);
            pDevice.Subscribe();
            pDevice.Start();

            foreach (BcfControl ctrl in mAllControls)
            {
                ctrl.BcfAction.Device = pDevice;
            }
        }