Exemple #1
0
        public void SubscribeToDevice(Device pDevice)
        {
            if (mSubscribedDevice.Contains(pDevice))
            {
                return;
            }

            pDevice.OnMidiValueChanged += new OnMidiValueChangedDelegate(pDevice_OnMidiValueChanged);
            pDevice.Subscribe();
            pDevice.Start();
        }
Exemple #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;
            }
        }