CardDmps |
public sealed class Dmps3DigitalMixOutput : CardDmps3OutputBase, IOutputMixer
The CardDmps3DigitalMixOutput type exposes the following members.
| Name | Description | |
|---|---|---|
| AudioOut | The DMInputChange event will trigger with AudioOutEventId. The DMInputChange event will trigger with AudioOutEventId. Assigns the audio source to route to the corresponding audio output. The input has no effect when audio routing is disabled ("AudioEnter" = 'false'), or when audio breakaway is disabled ("EnableAudioBreakaway" = 'false'). null will clear the assigned source.(Inherited from DMOutput) | |
| AudioOutFeedback |
Returns the audio source Object being routed to the corresponding output.
null = no source
(Inherited from DMOutput) | |
| AudioOutSource |
Selects audio output source.
The property will not support eDmps34KAudioOutSource.Dm8 for DMPS3-4K-200-C or DMPS3-4K-250-C (Overrides DMOutputAudioOutSource) | |
| AudioOutSourceFeedback |
Reports currently selected audio output source.
The DMOutputChange event will trigger with DigitalMixerAudioSourceFeedBackEventId. (Overrides DMOutputAudioOutSourceFeedback) | |
| BaseDevice |
The base switcher device this input/output belongs to.
(Inherited from DMInputOutputBase) | |
| Card |
Access to the plugged in card
(Inherited from DMInputOutputBase) | |
| CardInputOutputType |
This will dictate the type of card in the switcher for DMPS systems.
See SwitcherInputs and SwitcherOutputs for more details.
(Inherited from DMInputOutputBase) | |
| Endpoint |
Route endpoint
(Inherited from DMInputOutputBase) | |
| EndpointNameFeedback | The DMInputChange event will trigger with EndpointNameEventId. Text string that identifies the Endpoint name.(Inherited from DMInputOutputBase) | |
| EndpointOnlineFeedback | On an input the DMInputChange event will trigger with EndpointOnlineEventId On an output the DMOutputChange event will trigger with EndpointOnlineEventId Indicates that the Endpoint is connected and detected at the input or output. The output remains 'true' for as long as the Endpoint is detected. When the endpoint is no longer present, the value changes to false.(Inherited from DMInputOutputBase) | |
| HDBaseTDevice |
Get the current HDBaseTBase attached to this DM Input/Output
(Inherited from DMInputOutputBase) | |
| InputOutput |
The input output device that owns a port.
(Inherited from DMInputOutputBase) | |
| IoType |
The type of input or output
(Inherited from DMInputOutputBase) | |
| MasterMuteOffFeedBack |
Property that returns true when the Master is not muted on this output, false otherwise.
(Overrides CardDmps3OutputBaseMasterMuteOffFeedBack) | |
| MasterMuteOnFeedBack |
Property that returns true when the Master is muted on this output, false otherwise.
(Overrides CardDmps3OutputBaseMasterMuteOnFeedBack) | |
| MasterVolume |
Specifies the gain level for the Master volume on this output.
Valid values range from -800 (-80dB) to 100 (10dB).
(Overrides CardDmps3OutputBaseMasterVolume) | |
| MasterVolumeDown |
Decreases the master volume on this output while the property is true. Setting it to false will stop the decrease.
(Overrides CardDmps3OutputBaseMasterVolumeDown) | |
| MasterVolumeFeedBack |
Indicates the gain level for the Master volume on this output.
Valid values range from -800 (-80dB) to 100 (10dB).
(Overrides CardDmps3OutputBaseMasterVolumeFeedBack) | |
| MasterVolumeUp |
Increases the master volume on this output while the property is true. Setting it to false will stop the increase.
(Overrides CardDmps3OutputBaseMasterVolumeUp) | |
| MaxVolume | Specifies the maximum volume gain, in tenths of a dB. The MinVolume and MaxVolume properties allow endpoints to be set for volume control. Typically, this property would not be used since the minimum volume can be set through the Front Panel Setup Menus or using the DM Tool in Toolbox. Valid values range from -300 (-30dB) to 100 (10dB). | |
| MaxVolumeFeedback | Reports the current maximum volume gain, in tenths of a dB. Valid values range from -300 (-30dB) to 100 (10dB). | |
| MicLevel | Property to set the value of the level for a given microphone on this output. | |
| MicLevelFeedback | Property to read the feedback level for a given microphone on this output. | |
| MicMasterLevel |
Specifies the gain level for the Mic Master volume on this output.
Valid values range from -800 (-80dB) to 100 (10dB).
(Overrides CardDmps3OutputBaseMicMasterLevel) | |
| MicMasterLevelDown |
Decreases the Mic master volume on this output while the property is true. Setting it to false will stop the decrease.
(Overrides CardDmps3OutputBaseMicMasterLevelDown) | |
| MicMasterLevelFeedBack |
Indicates the gain level for the Mic Master volume on this output.
Valid values range from -800 (-80dB) to 100 (10dB).
(Overrides CardDmps3OutputBaseMicMasterLevelFeedBack) | |
| MicMasterLevelUp |
Increases the Mic master volume on this output while the property is true. Setting it to false will stop the increase.
(Overrides CardDmps3OutputBaseMicMasterLevelUp) | |
| MicMasterMuteOffFeedBack |
Property that returns true when the Mic Master is not muted on this output, false otherwise.
(Overrides CardDmps3OutputBaseMicMasterMuteOffFeedBack) | |
| MicMasterMuteOnFeedBack |
Property that returns true when the Mic Master is muted on this output, false otherwise.
(Overrides CardDmps3OutputBaseMicMasterMuteOnFeedBack) | |
| MicMuteOffFeedback | Property to return the state of the MicMuteOffFeedback for a given microphone on this output | |
| MicMuteOnFeedback | Property to return the state of the MicMuteOnFeedback for a given microphone on this output. | |
| MicPan | Property to set the value of the pan for a given microphone on this output. Valid values range from -32768 to 32768. | |
| MicPanFeedback | Property to read the pan level for a given microphone on this output. Valid values range from -32768 to 32768. | |
| MinVolume | Specifies the minimum volume gain, in tenths of a dB. The MinVolume and MaxVolume properties allow endpoints to be set for volume control. Typically, this property would not be used since the minimum volume can be set through the Front Panel Setup Menus or using the DM Tool in Toolbox. Valid values range from -800 (-80dB) to -400 (-40dB). | |
| MinVolumeFeedback | Reports the current minimum volume gain, in tenths of a dB. Valid values range from -800 (-80dB) to -400 (-40dB). | |
| Name |
Specifies the name of the corresponding output. The name is displayed on the LCD front panel and in DM Tool.
The string can consist of a maximum of 32 characters (0-9, -, +, [, ], aA-zZ, and space).
(Inherited from DMOutput) | |
| NameFeedback |
Specifies the name of the corresponding output stream. The name is displayed on the LCD front panel and in DM Tools.
The string can consist of a maximum of 32 characters (0-9, -, +, [, ], aA-zZ, and space).
(Inherited from DMOutput) | |
| Number |
The Number of stream input or output
(Inherited from DMInputOutputBase) | |
| OnDm64 |
Property to indicate that this I/O is on a DM64 based switcher.
(Inherited from DMInputOutputBase) | |
| OnDmps |
Property to indicate that this Input/Output is on a DMPS.
(Inherited from DMInputOutputBase) | |
| OnlineFeedback |
Indicates whether the card is online or offline; that is, whether it is running properly (responding to polls) on the internal network.
The output will remain 'true' for as long as the card is online.
'true' = Card online (running); 'false' = Card offline (not running)
(Inherited from DMInputOutputBase) | |
| OutputMixer | Property to get the Output Mixer of this Dmps3DigitalMixOutput card. | |
| OutputVuFeedback | Reports the VU meter feedback value, when VU feedback is enabled. Reported values will range from 0 to 8. | |
| Parent |
The parent that a given object was added to.
(Inherited from DMInputOutputBase) | |
| PoDMOverpowerFeedback |
Reports the overpower condition of the corresponding DM input or output.
The property is only supported on DMPS3-4K-200-C, DMPS3-4K-250-C, DMPS3-4K-300-C, and DMPS3-4K-350-C switchers. On other systems this property returns a null signal. On a supported output card the DMOutputChange event will trigger with PoDMOverpowerFeedbackEventId. On a supported input card the DMInputChange event will trigger with PoDMOverpowerFeedbackEventId. (Inherited from DMInputOutputBase) | |
| PresentFeedback |
Indicates whether the card is physically plugged into the card slot on the DM switcher.
The output will remain 'true' for as long as the card is detected.
'true' = Card present; 'false' = Card not installed
(Inherited from DMInputOutputBase) | |
| PresetNumber | Specifies the mixer preset number that will save or recall the mixing. Valid values range from 1 to 5. | |
| PresetReadyPulseFeedback |
Pulses to indicate that the system has finished recalling a preset.
The DMOutputChange event will trigger with MixerPresetReadyPulseFeedbackEventId. | |
| RecallingPresetFeedback |
When true, indicates that the system is in the process of recalling mixer preset.
The DMOutputChange event will trigger with RecallingMixerPresetFeedbackEventId. | |
| SourceBalance |
Specifies the source balance between the left and right channels on this output.
Valid values range from -50% (full left) to 50% (full right).
Use "SimplSharpDeviceHelper.PercentToUshort" to convert
the percentage to a ushort value or "SimplSharpDeviceHelper.UshortToPercent" to convert
the ushort value to percentage.
(Overrides CardDmps3OutputBaseSourceBalance) | |
| SourceBalanceFeedBack |
Indicates the source balance between the left and right channels on this output.
Valid values range from -50% (full left) to 50% (full right).
Use "SimplSharpDeviceHelper.PercentToUshort" to convert
the percentage to a ushort value or "SimplSharpDeviceHelper.UshortToPercent" to convert
the ushort value to percentage.
(Overrides CardDmps3OutputBaseSourceBalanceFeedBack) | |
| SourceLevel |
Specifies the gain level for the Source volume on this output.
Valid values range from -800 (-80dB) to 100 (10dB).
(Overrides CardDmps3OutputBaseSourceLevel) | |
| SourceLevelDown |
Decreases the source volume on this output while the property is true. Setting it to false will stop the decrease.
(Overrides CardDmps3OutputBaseSourceLevelDown) | |
| SourceLevelFeedBack |
Indicates the gain level for the Source volume on this output.
Valid values range from -800 (-80dB) to 100 (10dB).
(Overrides CardDmps3OutputBaseSourceLevelFeedBack) | |
| SourceLevelUp |
Increases the source volume on this output while the property is true. Setting it to false will stop the increase
(Overrides CardDmps3OutputBaseSourceLevelUp) | |
| SourceMuteOffFeedBack |
Property that returns true when the Source is not muted on this output, false otherwise.
The DMOutputChange event will trigger with SourceMuteOffFeedBackEventId. (Overrides CardDmps3OutputBaseSourceMuteOffFeedBack) | |
| SourceMuteOnFeedBack |
Property that returns true when the Source is muted on this output, false otherwise.
The DMOutputChange event will trigger with SourceMuteOnFeedBackEventId. (Overrides CardDmps3OutputBaseSourceMuteOnFeedBack) | |
| StartupVolume | Specifies the startup volume in tenths of a dB. The startup volume is the volume level that will be set when the system is turned on. Valid values range from -800 (-80dB) to 100 (10dB). | |
| StartupVolumeFeedback | Reports the current startup volume in tenths of a dB. Valid values range from -800 (-80dB) to 100 (10dB). | |
| Type |
Get the type of stream this object represents.
(Inherited from CardDmps3OutputBase) | |
| USBRoutedTo |
Selects the input or output where the corresponding USB source (connected to an output slot of the switcher) will be routed.
The input has no effect when USB routing is disabled ("USBEnter" = 'false'), or when USB breakaway is disabled ("EnableUSBBreakaway" = 'false').
Valid values are as follows:
null = Break connection, valid DMInput or DMOutput object will assign that object.
(Inherited from DMOutput) | |
| USBRoutedToFeedback |
Returns the input or output object where the corresponding USB source (connected to an output of the switcher) will be routed.
a null return will indicate no assigned connection
(Inherited from DMOutput) | |
| UserSpecifiedObject |
Can be assigned anything that user wants.
(Inherited from DMInputOutputBase) | |
| VideoOut |
Selects the video source to route to the corresponding video output, when video routing is enabled ("VideoEnter" = 'true').
null = no source
(Inherited from DMOutput) | |
| VideoOutFeedback | The DMInputChange event will trigger with VideoOutEventId. The DMInputChange event will trigger with VideoOutEventId. Returns the video source object being routed to the corresponding output. null = no source assigned(Inherited from DMOutput) |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MasterMuteOff |
Performs an unmute of the master on this output.
(Overrides CardDmps3OutputBaseMasterMuteOff) | |
| MasterMuteOn |
Performs of a mute of the master on this output.
(Overrides CardDmps3OutputBaseMasterMuteOn) | |
| MicMasterMuteOff |
Performs an unmute of the Mic master on this output.
(Overrides CardDmps3OutputBaseMicMasterMuteOff) | |
| MicMasterMuteOn |
Performs a mute of the Mic master on this output.
(Overrides CardDmps3OutputBaseMicMasterMuteOn) | |
| MicMuteOff | UnMute the given microphone on this output. | |
| MicMuteOn | Mute the given microphone on this output. | |
| RecallPreset | Recalls the mixer preset given by the MixerPresetNumber property. | |
| SavePreset | Saves the mixer preset given by the MixerPresetNumber property. | |
| SourceMuteOff |
Performs an unmute of the Source on this output.
(Overrides CardDmps3OutputBaseSourceMuteOff) | |
| SourceMuteOn |
Performs a mute of the Source on this output.
(Overrides CardDmps3OutputBaseSourceMuteOn) | |
| ToString |
String representation of this DM card.
(Inherited from CardDmps3OutputBase) |
public class ControlSystem : CrestronControlSystem { public Card.Dmps3DigitalMixOutput MixOut; public Card.Dmps3DmOutputBackend DmOut; public Card.Dmps3HdmiOutputBackend HdmiOut; public Card.Dmps3ProgramOutput ProgOut; public ControlSystem() : base() { // Find some output cards supporting digital mix output, audio output source.. MixOut = (Card.Dmps3DigitalMixOutput)SwitcherOutputs[(uint)eDmps34K300COutputs.Mix1]; DmOut = (Card.Dmps3DmOutputBackend)SwitcherOutputs[(uint)eDmps34K300COutputs.Dm1]; HdmiOut = (Card.Dmps3HdmiOutputBackend)SwitcherOutputs[(uint)eDmps34K300COutputs.Hdmi1]; ProgOut = (Card.Dmps3ProgramOutput)SwitcherOutputs[(uint)eDmps34K300COutputs.Program]; DMOutputChange += new DMOutputEventHandler(ControlSystem_DMOutputChange); CrestronConsole.AddNewConsoleCommand(ChangeAudioOutSource, "ChangeAudio", "Change some audio out source settings of some output cards.", ConsoleAccessLevelEnum.AccessOperator); }// ControlSystem() void ControlSystem_DMOutputChange(Switch device, DMOutputEventArgs args) { if (args.EventId == DMOutputEventIds.AudioOutEventId || args.EventId == DMOutputEventIds.DigitalMixerAudioSourceFeedBackEventId) { // Handling the DMOutput events for audio out source change, mixer audio source changes AudioOutSourceChangeHandler(args); } else { // Other event handling } } // Method to change audio out source settings void ChangeAudioOutSource(string cmdParameters) { // 1.1. Select a digital mix output card audio source MixOut.AudioOutSource = eDmps34KAudioOutSource.Hdmi3; // 1.2. Remember our Mix output is eDmps34K300COutputs.Mix1 and mute its master audio. MixOut.MasterMuteOn(); // 1.3. Select a mix output for a DM output (or Hdmi output) and let's select Mix1 DmOut.AudioOutSourceDevice = eDmps34KAudioOutSourceDevice.DigitalMixer1; // 1.4. Now use the mixer selected Dmps3AttachableOutputMixer mixer = DmOut.OutputMixer; if (mixer != null) { mixer.MasterMuteOff(); } // 2.1 Let the audio out source of a Hdmi output card follow its input video HdmiOut.AudioOutSourceDevice = eDmps34KAudioOutSourceDevice.AudioFollowsVideo; // 2.2 Select its input video ((DMOutput)HdmiOut).VideoOut = ((DMInput)SwitcherInputs[(uint)eDmps34K300CInputs.Dm2]); // 2.3 To stop the audio route, just do HdmiOut.AudioOutSourceDevice = eDmps34KAudioOutSourceDevice.NoRoute; // 3.1 Select audio out source for a Program output card ( or Codec output, or Aux output) ProgOut.AudioOutSource = eDmps34KAudioOutSource.Dm7; // 3.2 Or ProgOut.AudioOutSource = eDmps34KAudioOutSource.Analog4; } //ChangeAudioOutSource() // Method to handle audio out source/audio out device changes void AudioOutSourceChangeHandler(DMOutputEventArgs args) { eDmps34K300COutputs who = (eDmps34K300COutputs)args.Number; switch (args.EventId) { case DMOutputEventIds.AudioOutEventId: // Find out which output card triggers this event: if (who == eDmps34K300COutputs.Program) { Card.Dmps3ProgramOutput progOut = (Card.Dmps3ProgramOutput)SwitcherOutputs[(uint)eDmps34K300COutputs.Program]; CrestronConsole.PrintLine("AudioOutSourceChange on {0}, its audio out source: {1}", progOut.ToString(), progOut.AudioOutSourceFeedback.ToString()); } else if (who == eDmps34K300COutputs.Dm1) { Card.Dmps3DmOutputBackend dmOut = (Card.Dmps3DmOutputBackend)SwitcherOutputs[(uint)eDmps34K300COutputs.Dm1]; CrestronConsole.PrintLine("AudioOutSourceChange on {0}, its audio out source DEVICE: {1}", dmOut.ToString(), dmOut.AudioOutSourceDeviceFeedback.ToString()); } else if (who == eDmps34K300COutputs.Hdmi1) { Card.Dmps3HdmiOutputBackend hdmiOut = (Card.Dmps3HdmiOutputBackend)SwitcherOutputs[(uint)eDmps34K300COutputs.Hdmi1]; CrestronConsole.PrintLine("AudioOutSourceChange on {0}, its audio out source DEVICE: {1}", hdmiOut.ToString(), hdmiOut.AudioOutSourceDeviceFeedback.ToString()); } else { CrestronConsole.PrintLine("AudioOutSourceChange: Need more code to find out details."); } break; case DMOutputEventIds.DigitalMixerAudioSourceFeedBackEventId: if (who == eDmps34K300COutputs.Mix1) { Card.Dmps3DigitalMixOutput mixOut = (Card.Dmps3DigitalMixOutput)SwitcherOutputs[(uint)eDmps34K300COutputs.Mix1]; CrestronConsole.PrintLine("AudioMixerSourceChange on {0}, its audio out source: {1}", mixOut.ToString(), mixOut.AudioOutSourceFeedback.ToString()); } else if (who == eDmps34K300COutputs.Mix2) { Card.Dmps3DigitalMixOutput mixOut = (Card.Dmps3DigitalMixOutput)SwitcherOutputs[(uint)eDmps34K300COutputs.Mix2]; CrestronConsole.PrintLine("AudioMixerSourceChange on {0}, its audio out source: {1}", mixOut.ToString(), mixOut.AudioOutSourceFeedback.ToString()); } break; default: break; } } // AudioOutSourceChangeHandler() }