private void ChassisOnDMInputChange(Switch device, DMInputEventArgs args)
 {
     if (args.EventId == DMInputEventIds.UsbRoutedToEventId)
     {
         UpdateFeedback();
     }
 }
        private void ProcessEvent(DMInputEventArgs args)
        {
            switch (args.EventId)
            {
            case DMInputEventIds.VideoDetectedEventId:
                Video_Source_Detected_fb = VGAInput.VgaInputPort.VideoDetectedFeedback.BoolValue;
                break;

            case DMInputEventIds.SourceSyncEventId:
                Sync_Detected_fb = VGAInput.VgaInputPort.SyncDetectedFeedback.BoolValue;
                break;

            case DMInputEventIds.AudioGainFeedbackEventId:
                Analog_Audio_Gain_fb = VGAInput.AudioPort.AudioGainFeedback.ShortValue;
                break;

            case DMInputEventIds.VgaAutoCalibrateDetectedEventId:
                Analog_Audio_Gain_fb = VGAInput.AudioPort.AudioGainFeedback.ShortValue;
                break;

            case DMInputEventIds.AspectRatioFeedbackEventId:
                Auto_Calibrate_fb = VGAInput.VgaAutoCalibrateFeedback.BoolValue;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 3
0
 void TxRxPair_DMInputChange(Switch device, DMInputEventArgs args)
 {
     if (args.EventId == DMInputEventIds.VideoDetectedEventId)
     {
         SyncDetectedFeedbacks[args.Number].FireUpdate();
     }
 }
Ejemplo n.º 4
0
 void matrix_DMInputChange(Switch device, DMInputEventArgs args)
 {
     if (device.Inputs[args.Number].VideoDetectedFeedback.BoolValue == true)
     {
         CrestronConsole.PrintLine("Video Detected on Input " + args.Number + ".");
     }
 }
Ejemplo n.º 5
0
        void Dmps_DMInputChange(Switch device, DMInputEventArgs args)
        {
            //Debug.Console(2, this, "DMSwitch:{0} Input:{1} Event:{2}'", this.Name, args.Number, args.EventId.ToString());

            switch (args.EventId)
            {
            case (DMInputEventIds.OnlineFeedbackEventId):
            {
                Debug.Console(2, this, "DM Input OnlineFeedbackEventId for input: {0}. State: {1}", args.Number, device.Inputs[args.Number].EndpointOnlineFeedback);
                InputEndpointOnlineFeedbacks[args.Number].FireUpdate();
                break;
            }

            case (DMInputEventIds.VideoDetectedEventId):
            {
                Debug.Console(2, this, "DM Input {0} VideoDetectedEventId", args.Number);
                VideoInputSyncFeedbacks[args.Number].FireUpdate();
                break;
            }

            case (DMInputEventIds.InputNameEventId):
            {
                Debug.Console(2, this, "DM Input {0} NameFeedbackEventId", args.Number);
                InputNameFeedbacks[args.Number].FireUpdate();
                break;
            }
            }
        }
 private void ChassisOnDmInputChange(Switch device, DMInputEventArgs args)
 {
     if (args.EventId != DMInputEventIds.VideoDetectedEventId)
     {
         return;
     }
     UpdateFeedbackProcess(args.Number);
 }
Ejemplo n.º 7
0
 void switcher_DMInputChange(Switch device, DMInputEventArgs args)
 {
     switch (args.EventId)
     {
     case DMInputEventIds.SourceSyncEventId:
         SwitcherInputChangeEvent(args.Number, switcher.HdmiInputs[args.Number].VideoDetectedFeedback.BoolValue);
         break;
     }
 }
Ejemplo n.º 8
0
        private void avSwitch_DMInputChange(Switch device, DMInputEventArgs args)
        {
            // Report video sync to event handler
            EventHandler <GenericEventArgs <uint, bool> > temp = InputVideoSyncEvent;

            if (temp != null && args.EventId == DMInputEventIds.VideoDetectedEventId)
            {
                temp(this, new GenericEventArgs <uint, bool>(args.Number, avSwitch.Inputs[args.Number].VideoDetectedFeedback.BoolValue));
            }
        }
        void ControlSystem_DMInputChange(Switch device, DMInputEventArgs args)
        {
            if (args.EventId == DMInputEventIds.InputNameEventId)
            {
                var InputSlot = args.Number;
                switch (InputSlot)
                {
                case (int)ControlSystem.eDmps34K150CInputs.Vga1:
                    Input_1_Name_fb = VGAInput1.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Vga2:
                    Input_2_Name_fb = VGAInput2.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Vga3:
                    Input_3_Name_fb = VGAInput3.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Vga4:
                    Input_4_Name_fb = VGAInput4.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Hdmi1:
                    Input_5_Name_fb = HDMIInput1.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Hdmi2:
                    Input_6_Name_fb = HDMIInput2.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Hdmi3:
                    Input_7_Name_fb = HDMIInput3.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Hdmi4:
                    Input_8_Name_fb = HDMIInput4.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Dm1:
                    Input_9_Name_fb = DMInput1.NameFeedback.StringValue;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Dm2:
                    Input_10_Name_fb = DMInput2.NameFeedback.StringValue;
                    break;

                default:
                    break;
                }
            }
        }
Ejemplo n.º 10
0
        protected void OnDmInputChange(Switch device, DMInputEventArgs args)
        {
            //Debug.WriteInfo(GetType().Name, "OnDmInputChange - {0}, {1}", Tools.GetDmInputEventIdName(args.EventId), args.Number);
            if (args.EventId == DMInputEventIds.VideoDetectedEventId)
            {
#if DEBUG
                Debug.WriteSuccess("DM Input {0}, Video detected = {1}", args.Number,
                                   device.Inputs[args.Number].VideoDetectedFeedback.BoolValue);
#endif
                if (InputStatusChanged != null)
                {
                    InputStatusChanged(this, new SwitcherInputStatusChangeEventArgs(this, args.Number));
                }
            }
        }
Ejemplo n.º 11
0
        private void ProcessEvent(DMInputEventArgs args)
        {
            switch (args.EventId)
            {
            case DMInputEventIds.VideoDetectedEventId:
                Video_Source_Detected_fb = DMInput.DmInputPort.VideoSourceDetected.BoolValue;
                break;

            case DMInputEventIds.SourceSyncEventId:
                Sync_Detected_fb = DMInput.DmInputPort.SyncDetectedFeedback.BoolValue;
                break;

            case DMInputEventIds.HdcpSupportOnEventId:
                HDCP_Support_On_fb = DMInput.DmInputPort.HdcpSupportOnFeedback.BoolValue;
                break;

            case DMInputEventIds.HdcpSupportOffEventId:
                HDCP_Support_Off_fb = DMInput.DmInputPort.HdcpSupportOffFeedback.BoolValue;
                break;

            case DMInputEventIds.AudioSourceDetectedEventId:
                Audio_Source_Detected_fb = DMInput.DmInputPort.AudioSourceDetectedFeedback.BoolValue;
                break;

            case DMInputEventIds.AudioFormatEventId:
                Audio_Format_fb = DMInput.DmInputPort.Audio.AudioFormatFeedback;
                break;

            case DMInputEventIds.AudioChannelsEventId:
                Audio_Channels_fb = DMInput.DmInputPort.Audio.AudioChannelsFeedback.UShortValue;
                break;

            case DMInputEventIds.AudioGainFeedbackEventId:
                Audio_Gain_fb = DMInput.DmInputPort.Audio.AudioGainFeedback.ShortValue;
                break;

            case DMInputEventIds.EndpointOnlineEventId:
                ENDPOINT_ONLINE_fb = DMInput.EndpointOnlineFeedback;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 12
0
        void ControlSystem_DMInputChange(Switch device, DMInputEventArgs args)
        {
            if (args.EventId == DMInputEventIds.UsbRoutedToEventId)
            {
                var InputSlot = args.Number;
                switch (InputSlot)
                {
                case (int)ControlSystem.eDmps34K150CInputs.Dm1:
                    Input_DM1_UsbRoutedTo_fb = (DMInput1.USBRoutedToFeedback != null) ? DMInput1.USBRoutedToFeedback.Number : 0;
                    break;

                case (int)ControlSystem.eDmps34K150CInputs.Dm2:
                    Input_DM2_UsbRoutedTo_fb = (DMInput2.USBRoutedToFeedback != null) ? DMInput2.USBRoutedToFeedback.Number : 0;
                    break;

                default:
                    break;
                }
            }
        }
Ejemplo n.º 13
0
        //public void SetInputHdcpSupport(uint input, ePdtHdcpSupport hdcpSetting)
        //{

        //}


        void Chassis_DMInputChange(Switch device, DMInputEventArgs args)
        {
            switch (args.EventId)
            {
            case DMInputEventIds.EndpointOnlineEventId: {
                Debug.Console(2, this, "DM Input EndpointOnlineEventId for input: {0}. State: {1}", args.Number, device.Inputs[args.Number].EndpointOnlineFeedback);
                InputEndpointOnlineFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.OnlineFeedbackEventId: {
                Debug.Console(2, this, "DM Input OnlineFeedbackEventId for input: {0}. State: {1}", args.Number, device.Inputs[args.Number].EndpointOnlineFeedback);
                InputEndpointOnlineFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.VideoDetectedEventId: {
                Debug.Console(2, this, "DM Input {0} VideoDetectedEventId", args.Number);
                VideoInputSyncFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.InputNameEventId: {
                Debug.Console(2, this, "DM Input {0} NameFeedbackEventId", args.Number);
                InputNameFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.HdcpCapabilityFeedbackEventId: {
                Debug.Console(2, this, "DM Input {0} HdcpCapabilityFeedbackEventId", args.Number);
                InputCardHdcpCapabilityFeedbacks[args.Number].FireUpdate();
                break;
            }

            default: {
                Debug.Console(2, this, "DMInputChange fired for Input {0} with Unhandled EventId: {1}", args.Number, args.EventId);
                break;
            }
            }
        }
Ejemplo n.º 14
0
        public void DMInputChange(Switch device, DMInputEventArgs args)
        {
            switch (args.EventId)
            {
            case DMInputEventIds.SourceSyncEventId:
                try
                {
                    DMPSDmInputChange(dmInput.DmInputPort.SyncDetectedFeedback.BoolValue);
                }
                catch (Exception e)
                {
                    CrestronConsole.PrintLine("Error in Source Sync Feedback Event is: " + e);
                }

                break;

            case DMInputEventIds.VideoDetectedEventId:
                DMInput input2 = switcherInputs[args.Number] as DMInput;
                DMPSVideoSyncChange(input2.VideoDetectedFeedback.BoolValue);
                break;
            }
        }
        void DMPS4K150ControlSystem_DMInputChange(Switch device, DMInputEventArgs args)
        {
            var InputSlotChanged = args.Number;

            switch (InputSlotChanged)
            {
            case (int)ControlSystem.eDmps34K150CInputs.Vga1:
                if (VGA1InputChanged != null)
                {
                    VGA1InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Vga2:
                if (VGA2InputChanged != null)
                {
                    VGA2InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Vga3:
                if (VGA3InputChanged != null)
                {
                    VGA3InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Vga4:
                if (VGA4InputChanged != null)
                {
                    VGA4InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Hdmi1:
                if (HDMI1InputChanged != null)
                {
                    HDMI1InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Hdmi2:
                if (HDMI2InputChanged != null)
                {
                    HDMI2InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Hdmi3:
                if (HDMI3InputChanged != null)
                {
                    HDMI3InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Hdmi4:
                if (HDMI4InputChanged != null)
                {
                    HDMI4InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Dm1:
                if (DM1InputChanged != null)
                {
                    DM1InputChanged(args.Stream, args);
                }
                break;

            case (int)ControlSystem.eDmps34K150CInputs.Dm2:
                if (DM1InputChanged != null)
                {
                    DM2InputChanged(args.Stream, args);
                }
                break;

            default:
                break;
            }
        }
Ejemplo n.º 16
0
        void Chassis_DMInputChange(Switch device, DMInputEventArgs args)
        {
            switch (args.EventId)
            {
            case DMInputEventIds.EndpointOnlineEventId:
            {
                Debug.Console(2, this, "DM Input EndpointOnlineEventId for input: {0}. State: {1}", args.Number, device.Inputs[args.Number].EndpointOnlineFeedback);
                InputEndpointOnlineFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.OnlineFeedbackEventId:
            {
                Debug.Console(2, this, "DM Input OnlineFeedbackEventId for input: {0}. State: {1}", args.Number, device.Inputs[args.Number].EndpointOnlineFeedback);
                InputEndpointOnlineFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.VideoDetectedEventId:
            {
                Debug.Console(2, this, "DM Input {0} VideoDetectedEventId", args.Number);
                VideoInputSyncFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.InputNameEventId:
            {
                Debug.Console(2, this, "DM Input {0} NameFeedbackEventId", args.Number);
                InputNameFeedbacks[args.Number].FireUpdate();
                break;
            }

            case DMInputEventIds.UsbRoutedToEventId:
            {
                Debug.Console(2, this, "DM Input {0} UsbRoutedToEventId", args.Number);
                if (UsbInputRoutedToFeebacks[args.Number] != null)
                {
                    UsbInputRoutedToFeebacks[args.Number].FireUpdate();
                }
                else
                {
                    Debug.Console(1, this, "No index of {0} found in UsbInputRoutedToFeedbacks");
                }
                break;
            }

            case DMInputEventIds.HdcpCapabilityFeedbackEventId:
            {
                Debug.Console(2, this, "DM Input {0} HdcpCapabilityFeedbackEventId", args.Number);
                if (InputCardHdcpCapabilityFeedbacks[args.Number] != null)
                {
                    InputCardHdcpCapabilityFeedbacks[args.Number].FireUpdate();
                }
                else
                {
                    Debug.Console(1, this, "No index of {0} found in InputCardHdcpCapabilityFeedbacks");
                }
                break;
            }

            default:
            {
                Debug.Console(2, this, "DMInputChange fired for Input {0} with Unhandled EventId: {1}", args.Number, args.EventId);
                break;
            }
            }
        }
 void _SwitcherInput_VGA1InputChanged(IDmCardStreamBase stream, DMInputEventArgs args)
 {
     ProcessEvent(args);
 }