mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
feat: create branch to add volume control
This commit is contained in:
@@ -16,9 +16,11 @@ using PepperDash_Essentials_DM.Config;
|
|||||||
namespace PepperDash_Essentials_DM.Chassis
|
namespace PepperDash_Essentials_DM.Chassis
|
||||||
{
|
{
|
||||||
[Description("Wrapper class for all HdPsXxx switchers")]
|
[Description("Wrapper class for all HdPsXxx switchers")]
|
||||||
public class HdPsXxxController : CrestronGenericBridgeableBaseDevice, IRoutingNumericWithFeedback, IRoutingHasVideoInputSyncFeedbacks
|
public class HdPsXxxController : CrestronGenericBridgeableBaseDevice, IRoutingNumericWithFeedback, IRoutingHasVideoInputSyncFeedbacks, IHasVolumeControlWithFeedback
|
||||||
{
|
{
|
||||||
private readonly HdPsXxx _chassis;
|
private readonly HdPsXxx _chassis;
|
||||||
|
private readonly string _defaultAudioKey = "";
|
||||||
|
|
||||||
|
|
||||||
public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; }
|
public RoutingPortCollection<RoutingInputPort> InputPorts { get; private set; }
|
||||||
public RoutingPortCollection<RoutingOutputPort> OutputPorts { get; private set; }
|
public RoutingPortCollection<RoutingOutputPort> OutputPorts { get; private set; }
|
||||||
@@ -82,6 +84,9 @@ namespace PepperDash_Essentials_DM.Chassis
|
|||||||
|
|
||||||
OutputNames = props.Outputs;
|
OutputNames = props.Outputs;
|
||||||
SetupOutputs(OutputNames);
|
SetupOutputs(OutputNames);
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(props.DefaultAudioKey))
|
||||||
|
_defaultAudioKey = props.DefaultAudioKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get input priorities
|
// get input priorities
|
||||||
@@ -413,6 +418,31 @@ Selector: {4}
|
|||||||
_chassis.AutoRouteOff();
|
_chassis.AutoRouteOff();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region IHasVolumeWithFeedback Members
|
||||||
|
|
||||||
|
public void VolumeUp(bool pressRelease)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void VolumeDown(bool pressRelease)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetVolume(ushort level)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public IntFeedback VolumeLevelFeedback { get; private set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region Events
|
#region Events
|
||||||
|
|
||||||
|
|
||||||
@@ -517,6 +547,7 @@ Selector: {4}
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region Factory
|
#region Factory
|
||||||
|
|
||||||
|
|
||||||
@@ -571,7 +602,7 @@ Selector: {4}
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ namespace PepperDash_Essentials_DM.Config
|
|||||||
[JsonProperty("outputs")]
|
[JsonProperty("outputs")]
|
||||||
public Dictionary<uint, string> Outputs { get; set; }
|
public Dictionary<uint, string> Outputs { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("defaultAudioKey")]
|
||||||
|
public string DefaultAudioKey { get; set; }
|
||||||
|
|
||||||
// "inputPriorities": "1,4,3,2"
|
// "inputPriorities": "1,4,3,2"
|
||||||
[JsonProperty("inputPriorities")]
|
[JsonProperty("inputPriorities")]
|
||||||
public string InputPriorities { get; set; }
|
public string InputPriorities { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user