void ControlSystem_DMOutputChange(Switch device, DMOutputEventArgs args) { switch (args.EventId) { case DMOutputEventIds.AutoModeOnEventId: AutoMode_On_fb = DMOutput1.AutoModeOnFeedback.BoolValue; break; case DMOutputEventIds.AutoModeOffEventId: AutoMode_Off_fb = DMOutput1.AutoModeOffFeedback.BoolValue; break; case DMOutputEventIds.VideoOutEventId: Video_Source_fb = (DMOutput1.VideoOutFeedback != null) ? DMOutput1.VideoOutFeedback.Number : 0; break; case DMOutputEventIds.AudioOutEventId: Audio_Source_fb = (DMOutput1.AudioOutFeedback != null) ? DMOutput1.AudioOutFeedback.Number : 0; break; case DMOutputEventIds.UsbRoutedToEventId: Output_DM_UsbRoutedTo_fb = (DMOutput1.USBRoutedToFeedback != null) ? DMOutput1.USBRoutedToFeedback.Number : 0; break; default: break; } }
protected void OnDmOutputChange(Switch device, DMOutputEventArgs args) { //Debug.WriteInfo(GetType().Name, "OnDmOutputChange - {0}, {1}", Tools.GetDmOutputEventIdName(args.EventId), args.Number); if (args.EventId == DMOutputEventIds.VideoOutEventId) { #if DEBUG Debug.WriteSuccess("DM Output {0}, Video routed = {1}", args.Number, device.Outputs[args.Number].VideoOutFeedback != null ? device.Outputs[args.Number].VideoOutFeedback.Number : 0); #endif if (_outInit[args.Number]) { return; } _outInit[args.Number] = true; var input = device.Outputs[args.Number].VideoOutFeedback; if (input == null) { return; } device.Outputs[args.Number].VideoOut = input; device.VideoEnter.BoolValue = true; device.VideoEnter.BoolValue = false; Debug.WriteInfo(GetType().Name, "Set output {0} to {1}", args.Number, input.Number); } }
public void DMOutputChange(Switch device, DMOutputEventArgs args) { try { switch (args.EventId) { case DMOutputEventIds.VideoOutEventId: DMOutput output = switcherOutputs[args.Number] as DMOutput; if (output.VideoOutFeedback != null) { DMInput input = output.VideoOutFeedback as DMInput; DMPSVideoEvent(Convert.ToUInt16(output.Number), Convert.ToUInt16(input.Number), input.Name.StringValue); } else { DMPSVideoEvent(Convert.ToUInt16(output.Number), 0, ""); } break; case DMOutputEventIds.OutputDisabledEventId: CrestronConsole.PrintLine("HDMI1 Output Enabled Status is: " + hdmiOutput.HdmiOutputPort.OutputEnabledFeedback.BoolValue); DMPSHDMIChange(hdmiOutput.HdmiOutputPort.OutputEnabledFeedback.BoolValue); break; } } catch (Exception e) { CrestronConsole.PrintLine("Error in DMOUtputChange is: " + e); } }
void _SwitcherOutput_DmOutputStreamChanged(IDmCardStreamBase stream, DMOutputEventArgs args) { switch (args.EventId) { case DMOutputEventIds.DisabledByHdcpEventId: DM_Output_Disabled_By_HDCP_fb = _DMOutput.DmOutputPort.DisabledByHdcpFeedback.BoolValue; break; case DMOutputEventIds.OutputEnabledEventId: DM_Output_Enabled_fb = _DMOutput.DmOutputPort.OutputDisabledFeedback.BoolValue; break; case DMOutputEventIds.OutputDisabledEventId: DM_Output_Disabled_fb = _DMOutput.DmOutputPort.OutputEnabledFeedback.BoolValue; break; case DMOutputEventIds.ForceHdcpEnabledEventId: DM_Force_HDCP_Enable_fb = _DMOutput.DmOutputPort.ForceHdcpEnabledFeedback.BoolValue; break; case DMOutputEventIds.ForceHdcpDisabledEventId: DM_Force_HDCP_Disable_fb = _DMOutput.DmOutputPort.ForceHdcpDisabledFeedback.BoolValue; break; case DMOutputEventIds.StreamDeepColorModeEventId: DM_Deep_Color_Mode_fb = _DMOutput.DmOutputPort.DeepColorModeFeedback; break; default: break; } }
void TxRxPair_DMOutputChange(Switch device, DMOutputEventArgs args) { if (args.EventId == DMOutputEventIds.VideoOutEventId) { VideoSourceFeedback.FireUpdate(); } }
void BaseDevice_DMOutputChange(Switch device, DMOutputEventArgs args) { switch (args.EventId) { case DMOutputEventIds.MasterVolumeFeedBackEventId: { MasterVolumeLevel.VolumeLevelFeedback.FireUpdate(); break; } case DMOutputEventIds.MasterMuteOnFeedBackEventId: { MasterVolumeLevel.MuteFeedback.FireUpdate(); break; } case DMOutputEventIds.SourceLevelFeedBackEventId: { SourceVolumeLevel.VolumeLevelFeedback.FireUpdate(); break; } case DMOutputEventIds.Codec1LevelFeedBackEventId: { if (Codec1VolumeLevel != null) { Codec1VolumeLevel.VolumeLevelFeedback.FireUpdate(); } break; } case DMOutputEventIds.Codec1MuteOnFeedBackEventId: { if (Codec1VolumeLevel != null) { Codec1VolumeLevel.MuteFeedback.FireUpdate(); } break; } case DMOutputEventIds.Codec2LevelFeedBackEventId: { if (Codec2VolumeLevel != null) { Codec2VolumeLevel.VolumeLevelFeedback.FireUpdate(); } break; } case DMOutputEventIds.Codec2MuteOnFeedBackEventId: { if (Codec2VolumeLevel != null) { Codec2VolumeLevel.MuteFeedback.FireUpdate(); } break; } } }
/// /// </summary> void Chassis_DMOutputChange(Switch device, DMOutputEventArgs args) { var output = args.Number; switch (args.EventId) { case DMOutputEventIds.VolumeEventId: { if (VolumeControls.ContainsKey(output)) { VolumeControls[args.Number].VolumeEventFromChassis(); } break; } case DMOutputEventIds.EndpointOnlineEventId: { Debug.Console(2, this, "Output {0} DMOutputEventIds.EndpointOnlineEventId fired. EndpointOnlineFeedback State: {1}", args.Number, Chassis.Outputs[output].EndpointOnlineFeedback); if (Chassis.Outputs[output].Endpoint != null) { Debug.Console(2, this, "Output {0} DMOutputEventIds.EndpointOnlineEventId fired. Endpoint.IsOnline State: {1}", args.Number, Chassis.Outputs[output].Endpoint.IsOnline); } OutputEndpointOnlineFeedbacks[output].FireUpdate(); break; } case DMOutputEventIds.OnlineFeedbackEventId: { Debug.Console(2, this, "Output {0} DMInputEventIds.OnlineFeedbackEventId fired. State: {1}", args.Number, Chassis.Outputs[output].EndpointOnlineFeedback); OutputEndpointOnlineFeedbacks[output].FireUpdate(); break; } case DMOutputEventIds.VideoOutEventId: { if (Chassis.Outputs[output].VideoOutFeedback != null) { Debug.Console(2, this, "DMSwitchVideo:{0} Routed Input:{1} Output:{2}'", this.Name, Chassis.Outputs[output].VideoOutFeedback.Number, output); } if (VideoOutputFeedbacks.ContainsKey(output)) { VideoOutputFeedbacks[output].FireUpdate(); } if (OutputVideoRouteNameFeedbacks.ContainsKey(output)) { OutputVideoRouteNameFeedbacks[output].FireUpdate(); } break; } case DMOutputEventIds.OutputNameEventId: { Debug.Console(2, this, "DM Output {0} NameFeedbackEventId", output); OutputNameFeedbacks[output].FireUpdate(); break; } default: { Debug.Console(2, this, "DMOutputChange fired for Output {0} with Unhandled EventId: {1}", args.Number, args.EventId); break; } } }
private void MyFrame_DMOutputChange(Switch currentDevice, DMOutputEventArgs args) { if (currentDevice == myFrame) { string fb = myFrame.Outputs[args.Number].VideoOutFeedback.ToString(); myPanel.StringInput[1].StringValue = "TDS: Input " + fb.Substring(fb.IndexOf('#'), fb.Length - fb.IndexOf('#')) + " has been routed to Output " + args.Number; /* * * switch (args.Number) * { * case 1: * { * string fb = myFrame.Outputs[1].VideoOutFeedback.ToString(); * myPanel.StringInput[1].StringValue = "TDS: Input " + fb.Substring(fb.IndexOf('#'), fb.Length - fb.IndexOf('#')) + " has been routed!"; * break; * } * case 2: * { * string fb = myFrame.Outputs[1].VideoOutFeedback.ToString(); * myPanel.StringInput[1].StringValue = "TDS: Input " + fb.Substring(fb.IndexOf('#'), fb.Length - fb.IndexOf('#')) + " has been routed!"; * break; * } * case 3: * { * string fb = myFrame.Outputs[1].VideoOutFeedback.ToString(); * myPanel.StringInput[1].StringValue = "TDS: Input " + fb.Substring(fb.IndexOf('#'), fb.Length - fb.IndexOf('#')) + " has been routed!"; * break; * } * case 4: * { * string fb = myFrame.Outputs[1].VideoOutFeedback.ToString(); * myPanel.StringInput[1].StringValue = "TDS: Input " + fb.Substring(fb.IndexOf('#'), fb.Length - fb.IndexOf('#')) + " has been routed!"; * break; * } * case 5: * { * break; * } * case 6: * { * break; * } * case 7: * { * break; * } * case 8: * { * break; * } * default: * { * break; * } * }*/ } }
private void avSwitch_AudioDMOutputChange(Switch device, DMOutputEventArgs args) { // report the changed output and the new input to the event handler EventHandler <GenericEventArgs <uint, uint> > temp = AudioOutputSourceChangeEvent; if (temp != null && args.EventId == DMOutputEventIds.AudioOutEventId) { temp(this, new GenericEventArgs <uint, uint>(args.Number, avSwitch.Outputs[args.Number].AudioOutFeedback.Number)); } }
public void DMOutputChange(Switch device, DMOutputEventArgs args) { try { switch (args.EventId) { case DMOutputEventIds.AudioOutEventId: DMOutput output = programOut; //[args.Number] as DMOutput; if (output.AudioOutFeedback != null) { DMInput input = output.AudioOutFeedback as DMInput; AudioSourceChange(input.Number); } else { AudioSourceChange(0); } break; case DMOutputEventIds.MasterVolumeFeedBackEventId: AudioLevelChange(programOut.MasterVolumeFeedBack.UShortValue, programOut.MasterMuteOnFeedBack.BoolValue); break; case DMOutputEventIds.MasterMuteOnFeedBackEventId: AudioLevelChange(programOut.MasterVolumeFeedBack.UShortValue, programOut.MasterMuteOnFeedBack.BoolValue); break; case DMOutputEventIds.MasterMuteOffFeedBackEventId: AudioLevelChange(programOut.MasterVolumeFeedBack.UShortValue, programOut.MasterMuteOnFeedBack.BoolValue); break; case DMOutputEventIds.AmpPowerOnFeedBackEventId: AmpPowerChange(AmpPowerStatus); break; case DMOutputEventIds.AmpPowerOffFeedBackEventId: AmpPowerChange(AmpPowerStatus); break; case DMOutputEventIds.MonoOutputFeedBackEventId: AmpMixerChange(programOut.OutputMixer.MonoOutputFeedback.BoolValue); break; case DMOutputEventIds.StereoOutputFeedBackEventId: AmpMixerChange(programOut.OutputMixer.MonoOutputFeedback.BoolValue); break; } } catch (Exception e) { CrestronConsole.PrintLine("Error in DMAudioOutputChange is: " + e); } }
void _SwitcherOutput_DMOutputChanged(IDmCardStreamBase stream, DMOutputEventArgs args) { switch (args.EventId) { case DMOutputEventIds.EndpointOnlineEventId: ENDPOINT_ONLINE_fb = _DMOutput.EndpointOnlineFeedback; break; default: break; } }
void matrix_DMOutputChange(Switch device, DMOutputEventArgs args) { uint n = args.Number; uint x = (uint)device.NumberOfOutputs; for (uint i = 1; i <= x; i++) { xp.BooleanInput[i + ((n - 1) * x)].BoolValue = false; } xp.BooleanInput[device.Outputs[n].VideoOutFeedback.Number + (n - 1) * x].BoolValue = true; CrestronConsole.PrintLine("Switched input " + (device.Outputs[n].VideoOutFeedback.Number) + " to output " + n + "."); }
/// /// </summary> void Dmps_DMOutputChange(Switch device, DMOutputEventArgs args) { Debug.Console(2, this, "DMOutputChange Output: {0} EventId: {1}", args.Number, args.EventId.ToString()); var output = args.Number; DMOutput outputCard = Dmps.SwitcherOutputs[output] as DMOutput; if (args.EventId == DMOutputEventIds.VolumeEventId && VolumeControls.ContainsKey(output)) { VolumeControls[args.Number].VolumeEventFromChassis(); } else if (args.EventId == DMOutputEventIds.OnlineFeedbackEventId && OutputEndpointOnlineFeedbacks.ContainsKey(output)) { OutputEndpointOnlineFeedbacks[output].FireUpdate(); } else if (args.EventId == DMOutputEventIds.VideoOutEventId) { if (outputCard != null && outputCard.VideoOutFeedback != null) { Debug.Console(2, this, "DMSwitchVideo:{0} Routed Input:{1} Output:{2}'", this.Name, outputCard.VideoOutFeedback.Number, output); } if (VideoOutputFeedbacks.ContainsKey(output)) { VideoOutputFeedbacks[output].FireUpdate(); } if (OutputVideoRouteNameFeedbacks.ContainsKey(output)) { OutputVideoRouteNameFeedbacks[output].FireUpdate(); } } else if (args.EventId == DMOutputEventIds.AudioOutEventId) { if (outputCard != null && outputCard.AudioOutFeedback != null) { Debug.Console(2, this, "DMSwitchAudio:{0} Routed Input:{1} Output:{2}'", this.Name, outputCard.AudioOutFeedback.Number, output); } if (AudioOutputFeedbacks.ContainsKey(output)) { AudioOutputFeedbacks[output].FireUpdate(); } } else if (args.EventId == DMOutputEventIds.OutputNameEventId && OutputNameFeedbacks.ContainsKey(output)) { Debug.Console(2, this, "DM Output {0} NameFeedbackEventId", output); OutputNameFeedbacks[output].FireUpdate(); } }
void ControlSystem_DMOutputChange(Switch device, DMOutputEventArgs args) { if (args.EventId == DMOutputEventIds.OutputNameEventId) { var OutputSlot = args.Number; switch (OutputSlot) { case (int)ControlSystem.eDmps34K150COutputs.DmHdmiAnalogOutput: Output_Name_fb = DMOutput1.NameFeedback.StringValue; break; default: break; } } }
void switcher_DMOutputChange(Switch device, DMOutputEventArgs args) { try { switch (args.EventId) { case DMOutputEventIds.VideoOutEventId: if (switcher.HdmiOutputs[1].VideoOutFeedback != null) { var input = Convert.ToUInt16(switcher.HdmiOutputs[1].VideoOutFeedback.Number); SwitcherOutputChangeEvent(Convert.ToUInt16(switcher.HdmiOutputs[1].VideoOutFeedback.Number), switcher.HdmiInputs[input].Name.StringValue); } else { SwitcherOutputChangeEvent(0, "Nothing"); } break; } } catch (Exception e) { CrestronConsole.PrintLine("Error in Switcher Output Chane is: " + e); } }
void _SwitcherOutput_DMHDMIOutputStreamChanged(IDmCardStreamBase stream, DMOutputEventArgs args) { switch (args.EventId) { case DMOutputEventIds.Stream3DStatusEventId: Source_3D_Status_fb = _DMOutput.DmHdmiOutputStream.Stream3DStatusFeedback; break; case DMOutputEventIds.ScalerEnabledEventId: Scaler_Enabled_fb = _DMOutput.DmHdmiOutputStream.Scaler.EnabledFeedback; break; case DMOutputEventIds.UnderscanEventId: Scaler_Underscan_Mode_fb = _DMOutput.DmHdmiOutputStream.Scaler.UnderscanModeFeedback; break; case DMOutputEventIds.MasterMuteOnFeedBackEventId: Master_Mute_On_fb = _DMOutput.DmHdmiOutputStream.MasterMuteOnFeedBack.BoolValue; break; case DMOutputEventIds.MasterMuteOffFeedBackEventId: Master_Mute_Off_fb = _DMOutput.DmHdmiOutputStream.MasterMuteOffFeedBack.BoolValue; break; case DMOutputEventIds.Mic1MuteOnFeedBackEventId: Mic_Mute_On_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.MicMuteOnFeedback[1].BoolValue; break; case DMOutputEventIds.Mic1MuteOffFeedBackEventId: Mic_Mute_Off_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.MicMuteOffFeedback[1].BoolValue; break; case DMOutputEventIds.SourceMuteOnFeedBackEventId: Source_Mute_On_fb = _DMOutput.DmHdmiOutputStream.SourceMuteOnFeedBack.BoolValue; break; case DMOutputEventIds.SourceMuteOffFeedBackEventId: Source_Mute_Off_fb = _DMOutput.DmHdmiOutputStream.SourceMuteOffFeedBack.BoolValue; break; case DMOutputEventIds.MixerBypassedFeedBackEventId: Mixer_Bypassed_fb = _DMOutput.DmHdmiOutputStream.SourceMuteOffFeedBack.BoolValue; break; case DMOutputEventIds.PresetReadyPulseFeedbackEventId: Preset_Ready_Pulse_fb = _DMOutput.DmHdmiOutputStream.PresetReadyPulseFeedback.BoolValue; break; case DMOutputEventIds.MasterVolumeFeedBackEventId: Master_Volume_fb = _DMOutput.DmHdmiOutputStream.MasterVolumeFeedBack.ShortValue; break; case DMOutputEventIds.Mic1LevelFeedBackEventId: Mic_Level_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.MicLevelFeedback[1].ShortValue; break; case DMOutputEventIds.Mic1PanFeedBackEventId: Mic_Pan_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.MicPanFeedback[1].ShortValue; break; case DMOutputEventIds.SourceLevelFeedBackEventId: Source_Level_fb = _DMOutput.DmHdmiOutputStream.SourceLevelFeedBack.ShortValue; break; case DMOutputEventIds.SourceBalanceFeedBackEventId: Source_Balance_fb = _DMOutput.DmHdmiOutputStream.SourceBalanceFeedBack.ShortValue; break; case DMOutputEventIds.MinVolumeFeedBackEventId: Min_Volume_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.MinVolumeFeedback.ShortValue; break; case DMOutputEventIds.MaxVolumeFeedBackEventId: Max_Volume_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.MaxVolumeFeedback.ShortValue; break; case DMOutputEventIds.OutputVuFeedBackEventId: VU_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.OutputVuFeedback.UShortValue; break; case DMOutputEventIds.StartupVolumeFeedBackEventId: Startup_Volume_fb = _DMOutput.DmHdmiOutputStream.OutputMixer.StartupVolumeFeedback.ShortValue; break; case DMOutputEventIds.RecallingPresetFeedbackEventId: Recalling_Preset_fb = _DMOutput.DmHdmiOutputStream.RecallingPresetFeedback.BoolValue; break; case 406: Scaler_Enabled_fb = _DMOutput.DmHdmiOutputStream.Scaler.EnabledFeedback; break; case 403: Scaler_User_Resolution_Index_fb = _DMOutput.DmHdmiOutputStream.Scaler.UserResolutionIndexFeedback; break; case 401: Scaler_Underscan_Mode_fb = _DMOutput.DmHdmiOutputStream.Scaler.UnderscanModeFeedback; break; case 402: Scaler_Display_Mode_fb = _DMOutput.DmHdmiOutputStream.Scaler.DisplayModeFeedback; break; case 404: Scaler_Out_Standby_Timeout_fb = _DMOutput.DmHdmiOutputStream.Scaler.StandbyTimeoutFeedback; break; default: break; } }
void _SwitcherOutput_DmpsAudioOutputStreamChanged(IDmCardStreamBase stream, DMOutputEventArgs args) { switch (args.EventId) { case DMOutputEventIds.MasterMuteOnFeedBackEventId: Master_Mute_On_fb = _AnalogAudioOutput.MasterMuteOnFeedBack.BoolValue; break; case DMOutputEventIds.MasterMuteOffFeedBackEventId: Master_Mute_Off_fb = _AnalogAudioOutput.MasterMuteOffFeedBack.BoolValue; break; case DMOutputEventIds.Mic1MuteOnFeedBackEventId: Mic_Mute_On_fb = _AnalogAudioOutput.OutputMixer.MicMuteOnFeedback[1].BoolValue; break; case DMOutputEventIds.Mic1MuteOffFeedBackEventId: Mic_Mute_Off_fb = _AnalogAudioOutput.OutputMixer.MicMuteOffFeedback[1].BoolValue; break; case DMOutputEventIds.SourceMuteOnFeedBackEventId: Source_Mute_On_fb = _AnalogAudioOutput.SourceMuteOnFeedBack.BoolValue; break; case DMOutputEventIds.SourceMuteOffFeedBackEventId: Source_Mute_Off_fb = _AnalogAudioOutput.SourceMuteOffFeedBack.BoolValue; break; case DMOutputEventIds.MonoOutputFeedBackEventId: Mono_Output_fb = _AnalogAudioOutput.OutputMixer.MonoOutputFeedback.BoolValue; break; case DMOutputEventIds.StereoOutputFeedBackEventId: Stereo_Output_fb = _AnalogAudioOutput.OutputMixer.StereoOutputFeedback.BoolValue; break; case DMOutputEventIds.LimiterEnableFeedbackEventId: Limiter_Enable_fb = _AnalogAudioOutput.OutputEqualizer.LimiterEnableFeedback.BoolValue; break; case DMOutputEventIds.LimiterDisableFeedbackEventId: Limiter_Disable_fb = _AnalogAudioOutput.OutputEqualizer.LimiterDisableFeedback.BoolValue; break; case DMOutputEventIds.LimiterSoftKneeOnFeedbackEventId: Limiter_Soft_Knee_Enable_fb = _AnalogAudioOutput.OutputEqualizer.LimiterSoftKneeOnFeedback.BoolValue; break; case DMOutputEventIds.LimiterSoftKneeOffFeedbackEventId: Limiter_Soft_Knee_Disable_fb = _AnalogAudioOutput.OutputEqualizer.LimiterSoftKneeOffFeedback.BoolValue; break; case DMOutputEventIds.MixerBypassedFeedBackEventId: Mixer_Bypassed_fb = _AnalogAudioOutput.OutputMixer.MixerBypassedFeedback.BoolValue; break; case DMOutputEventIds.RecallingPresetFeedbackEventId: Recalling_Preset_fb = _AnalogAudioOutput.RecallingPresetFeedback.BoolValue; break; case DMOutputEventIds.PresetReadyPulseFeedbackEventId: Preset_Ready_Pulse_fb = _AnalogAudioOutput.PresetReadyPulseFeedback.BoolValue; break; case DMOutputEventIds.MasterVolumeFeedBackEventId: Master_Volume_fb = _AnalogAudioOutput.MasterVolumeFeedBack.ShortValue; break; case DMOutputEventIds.Mic1LevelFeedBackEventId: Mic_Level_fb = _AnalogAudioOutput.OutputMixer.MicLevelFeedback[1].ShortValue; break; case DMOutputEventIds.Mic1PanFeedBackEventId: Mic_Pan_fb = _AnalogAudioOutput.OutputMixer.MicPanFeedback[1].ShortValue;; break; case DMOutputEventIds.SourceLevelFeedBackEventId: Source_Level_fb = _AnalogAudioOutput.SourceLevelFeedBack.ShortValue; break; case DMOutputEventIds.SourceBalanceFeedBackEventId: Source_Balance_fb = _AnalogAudioOutput.SourceBalanceFeedBack.ShortValue;; break; case DMOutputEventIds.DelayFeedBackEventId: Delay_fb = _AnalogAudioOutput.OutputMixer.DelayFeedback.UShortValue; break; case DMOutputEventIds.MinVolumeFeedBackEventId: Min_Volume_fb = _AnalogAudioOutput.OutputMixer.MinVolumeFeedback.ShortValue; break; case DMOutputEventIds.MaxVolumeFeedBackEventId: Max_Volume_fb = _AnalogAudioOutput.OutputMixer.MaxVolumeFeedback.ShortValue; break; case DMOutputEventIds.StartupVolumeFeedBackEventId: Startup_Volume_fb = _AnalogAudioOutput.OutputMixer.StartupVolumeFeedback.ShortValue; break; case DMOutputEventIds.OutputVuFeedBackEventId: VU_fb = _AnalogAudioOutput.OutputMixer.OutputVuFeedback.UShortValue; break; case DMOutputEventIds.BassEventId: Bass_fb = _AnalogAudioOutput.OutputEqualizer.BassFeedback.ShortValue; break; case DMOutputEventIds.TrebleEventId: Treble_fb = _AnalogAudioOutput.OutputEqualizer.TrebleFeedback.ShortValue; break; case DMOutputEventIds.LimiterThresholdFeedbackEventId: Limiter_Threshold_fb = _AnalogAudioOutput.OutputEqualizer.LimiterThresholdFeedback.ShortValue; break; case DMOutputEventIds.LimiterAttackFeedbackEventId: Limiter_Attack_fb = _AnalogAudioOutput.OutputEqualizer.LimiterAttackFeedback.UShortValue; break; case DMOutputEventIds.LimiterReleaseFeedbackEventId: Limiter_Release_fb = _AnalogAudioOutput.OutputEqualizer.LimiterReleaseFeedback.UShortValue; break; case DMOutputEventIds.LimiterRatioFeedbackEventId: Limiter_Ratio_fb = _AnalogAudioOutput.OutputEqualizer.LimiterRatioFeedback.UShortValue; break; case DMOutputEventIds.GeqGain315HzFeedbackEventId: GEQ_Gain_31_5Hz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain315HzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain63HzFeedbackEventId: GEQ_Gain_63Hz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain63HzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain125HzFeedbackEventId: GEQ_Gain_125Hz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain125HzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain250HzFeedbackEventId: GEQ_Gain_250Hz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain250HzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain500HzFeedbackEventId: GEQ_Gain_500Hz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain500HzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain1KHzFeedbackEventId: GEQ_Gain_1KHz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain1KHzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain2KHzFeedbackEventId: GEQ_Gain_2KHz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain2KHzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain4KHzFeedbackEventId: GEQ_Gain_4KHz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain4KHzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain8KHzFeedbackEventId: GEQ_Gain_8KHz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain8KHzFeedback.ShortValue; break; case DMOutputEventIds.GeqGain16KHzFeedbackEventId: GEQ_Gain_16KHz_fb = _AnalogAudioOutput.OutputEqualizer.GeqGain16KHzFeedback.ShortValue; break; default: break; } }
private void _ControlSystem_DMOutputChange(Switch device, DMOutputEventArgs args) { if (args.Stream == null) { if (DMOutputChanged != null) { DMOutputChanged(args.Stream, args); } } else { switch (args.Stream.Type) { case eDmStreamType.Aec: break; case eDmStreamType.AirMedia: break; case eDmStreamType.AirMediaStreamingInput: break; case eDmStreamType.AnalogAudio: break; case eDmStreamType.AnalogAudioInput: break; case eDmStreamType.AvStream: break; case eDmStreamType.Balanced: break; case eDmStreamType.Bnc: break; case eDmStreamType.Camera: break; case eDmStreamType.Coaxial: break; case eDmStreamType.Codec: break; case eDmStreamType.Cvbs: break; case eDmStreamType.DM: if (DmOutputStreamChanged != null) { DmOutputStreamChanged(args.Stream, args); } break; case eDmStreamType.Dialer: break; case eDmStreamType.DisplayPort: break; case eDmStreamType.DmLite: break; case eDmStreamType.DmpsAudio: if (DmpsAudioOutputStreamChanged != null) { DmpsAudioOutputStreamChanged(args.Stream, args); } break; case eDmStreamType.DmpsDmHdmi: if (DmpsDmHdmiOutputStreamChanged != null) { DmpsDmHdmiOutputStreamChanged(args.Stream, args); } break; case eDmStreamType.Dvi: break; case eDmStreamType.Hdmi: if (HdmiOutputStreamChanged != null) { HdmiOutputStreamChanged(args.Stream, args); } break; case eDmStreamType.HdmiVga: break; case eDmStreamType.HdmiVgaBnc: break; case eDmStreamType.Optical: break; case eDmStreamType.Sip: break; case eDmStreamType.StreamingRx: break; case eDmStreamType.StreamingTx: break; case eDmStreamType.Vga: break; default: break; } } }