mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
fix: updates SetupOutputs to create a hdmiOutX and dmLiteOutX port
This commit is contained in:
@@ -105,10 +105,12 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
var input = item;
|
var input = item;
|
||||||
var index = item.Number;
|
var index = item.Number;
|
||||||
var key = string.Format("hdmiIn{0}", index);
|
var key = string.Format("hdmiIn{0}", index);
|
||||||
input.Name.StringValue = string.IsNullOrEmpty(InputNames[index])
|
var name = string.IsNullOrEmpty(InputNames[index])
|
||||||
? string.Format("HDMI Input {0}", index)
|
? string.Format("HDMI Input {0}", index)
|
||||||
: InputNames[index];
|
: InputNames[index];
|
||||||
|
|
||||||
|
input.Name.StringValue = name;
|
||||||
|
|
||||||
InputNameFeedbacks.Add(new StringFeedback(index.ToString(CultureInfo.InvariantCulture),
|
InputNameFeedbacks.Add(new StringFeedback(index.ToString(CultureInfo.InvariantCulture),
|
||||||
() => InputNames[index]));
|
() => InputNames[index]));
|
||||||
|
|
||||||
@@ -116,7 +118,7 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
{
|
{
|
||||||
FeedbackMatchObject = input
|
FeedbackMatchObject = input
|
||||||
};
|
};
|
||||||
Debug.Console(1, this, "Adding Input port: {0} - {1}", port.Key, input.Name);
|
Debug.Console(1, this, "Adding Input port: {0} - {1}", port.Key, name);
|
||||||
InputPorts.Add(port);
|
InputPorts.Add(port);
|
||||||
|
|
||||||
InputHdcpEnableFeedback.Add(new BoolFeedback(index.ToString(CultureInfo.InvariantCulture),
|
InputHdcpEnableFeedback.Add(new BoolFeedback(index.ToString(CultureInfo.InvariantCulture),
|
||||||
@@ -132,10 +134,12 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
var input = item;
|
var input = item;
|
||||||
var index = item.Number;
|
var index = item.Number;
|
||||||
var key = string.Format("dmLiteIn{0}", index);
|
var key = string.Format("dmLiteIn{0}", index);
|
||||||
input.Name.StringValue = string.IsNullOrEmpty(InputNames[index])
|
var name = string.IsNullOrEmpty(InputNames[index])
|
||||||
? string.Format("DM Input {0}", index)
|
? string.Format("DM Input {0}", index)
|
||||||
: InputNames[index];
|
: InputNames[index];
|
||||||
|
|
||||||
|
input.Name.StringValue = name;
|
||||||
|
|
||||||
InputNameFeedbacks.Add(new StringFeedback(index.ToString(CultureInfo.InvariantCulture),
|
InputNameFeedbacks.Add(new StringFeedback(index.ToString(CultureInfo.InvariantCulture),
|
||||||
() => InputNames[index]));
|
() => InputNames[index]));
|
||||||
|
|
||||||
@@ -143,7 +147,7 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
{
|
{
|
||||||
FeedbackMatchObject = input
|
FeedbackMatchObject = input
|
||||||
};
|
};
|
||||||
Debug.Console(0, this, "Adding Input port: {0} - {1}", port.Key, input.Name);
|
Debug.Console(0, this, "Adding Input port: {0} - {1}", port.Key, name);
|
||||||
InputPorts.Add(port);
|
InputPorts.Add(port);
|
||||||
|
|
||||||
InputHdcpEnableFeedback.Add(new BoolFeedback(index.ToString(CultureInfo.InvariantCulture),
|
InputHdcpEnableFeedback.Add(new BoolFeedback(index.ToString(CultureInfo.InvariantCulture),
|
||||||
@@ -169,26 +173,28 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
{
|
{
|
||||||
var output = item;
|
var output = item;
|
||||||
var index = item.Number;
|
var index = item.Number;
|
||||||
var key = string.Format("hdmiDmLiteOut{0}", index);
|
var name = string.IsNullOrEmpty(OutputNames[index])
|
||||||
|
|
||||||
output.Name.StringValue = string.IsNullOrEmpty(OutputNames[index])
|
|
||||||
? string.Format("Output {0}", index)
|
? string.Format("Output {0}", index)
|
||||||
: OutputNames[index];
|
: OutputNames[index];
|
||||||
|
|
||||||
var hdmiPort = new RoutingOutputPort(key, eRoutingSignalType.AudioVideo, eRoutingPortConnectionType.Hdmi, output, this)
|
output.Name.StringValue = name;
|
||||||
|
|
||||||
|
var hdmiKey = string.Format("hdmiOut{0}", index);
|
||||||
|
var hdmiPort = new RoutingOutputPort(hdmiKey, eRoutingSignalType.AudioVideo, eRoutingPortConnectionType.Hdmi, output, this)
|
||||||
{
|
{
|
||||||
FeedbackMatchObject = output,
|
FeedbackMatchObject = output,
|
||||||
Port = output.HdmiOutput.HdmiOutputPort.StreamCec
|
Port = output.HdmiOutput.HdmiOutputPort.StreamCec
|
||||||
};
|
};
|
||||||
Debug.Console(1, this, "Adding Output port: {0} - {1}", hdmiPort.Key, output.Name);
|
Debug.Console(1, this, "Adding Output port: {0} - {1}", hdmiPort.Key, name);
|
||||||
OutputPorts.Add(hdmiPort);
|
OutputPorts.Add(hdmiPort);
|
||||||
|
|
||||||
var dmLitePort = new RoutingOutputPort(key, eRoutingSignalType.AudioVideo, eRoutingPortConnectionType.DmCat, output, this)
|
var dmLiteKey = string.Format("dmLiteOut{0}", index);
|
||||||
|
var dmLitePort = new RoutingOutputPort(dmLiteKey, eRoutingSignalType.AudioVideo, eRoutingPortConnectionType.DmCat, output, this)
|
||||||
{
|
{
|
||||||
FeedbackMatchObject = output,
|
FeedbackMatchObject = output,
|
||||||
Port = output.DmLiteOutput.DmLiteOutputPort.StreamCec
|
Port = output.DmLiteOutput.DmLiteOutputPort.StreamCec
|
||||||
};
|
};
|
||||||
Debug.Console(1, this, "Adding Output port: {0} - {1}", dmLitePort.Key, output.Name);
|
Debug.Console(1, this, "Adding Output port: {0} - {1}", dmLitePort.Key, name);
|
||||||
OutputPorts.Add(dmLitePort);
|
OutputPorts.Add(dmLitePort);
|
||||||
|
|
||||||
OutputRouteNameFeedback.Add(new StringFeedback(index.ToString(CultureInfo.InvariantCulture),
|
OutputRouteNameFeedback.Add(new StringFeedback(index.ToString(CultureInfo.InvariantCulture),
|
||||||
|
|||||||
Reference in New Issue
Block a user