コード例 #1
0
        private void VgaInputOnInputStreamChange(EndpointInputStream inputStream, EndpointInputStreamEventArgs args)
        {
            switch (args.EventId)
            {
            case EndpointInputStreamEventIds.FreeRunFeedbackEventId:
                FreeRunEnabledFeedback.FireUpdate();
                break;

            case EndpointInputStreamEventIds.SyncDetectedFeedbackEventId:
                VgaVideoSyncFeedback.FireUpdate();
                break;
            }
        }
コード例 #2
0
        void InputStreamChangeEvent(EndpointInputStream inputStream, EndpointInputStreamEventArgs args)
        {
            Debug.Console(2, "{0} event {1} stream {2}", this.Tx.ToString(), inputStream.ToString(), args.EventId.ToString());

            if (args.EventId == EndpointInputStreamEventIds.HdcpSupportOffFeedbackEventId)
            {
                HdmiInHdcpCapabilityFeedback.FireUpdate();
            }
            else if (args.EventId == EndpointInputStreamEventIds.HdcpSupportOnFeedbackEventId)
            {
                HdmiInHdcpCapabilityFeedback.FireUpdate();
            }
            else if (args.EventId == EndpointInputStreamEventIds.FreeRunFeedbackEventId)
            {
                FreeRunEnabledFeedback.FireUpdate();
            }
        }