mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
added IDspPreset Interface
Implemented IDspPreset Interface on internal Tesira DSP Resolves #457
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
namespace PepperDash.Essentials.Core
|
||||||
|
{
|
||||||
|
public interface IDspPreset
|
||||||
|
{
|
||||||
|
void RunPreset(string name);
|
||||||
|
|
||||||
|
void RunPreset(int id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -190,6 +190,7 @@
|
|||||||
<Compile Include="Devices\EssentialsBridgeableDevice.cs" />
|
<Compile Include="Devices\EssentialsBridgeableDevice.cs" />
|
||||||
<Compile Include="Devices\EssentialsDevice.cs" />
|
<Compile Include="Devices\EssentialsDevice.cs" />
|
||||||
<Compile Include="Devices\GenericIRController.cs" />
|
<Compile Include="Devices\GenericIRController.cs" />
|
||||||
|
<Compile Include="Devices\IDspPreset.cs" />
|
||||||
<Compile Include="Devices\IProjectorInterfaces.cs" />
|
<Compile Include="Devices\IProjectorInterfaces.cs" />
|
||||||
<Compile Include="Devices\PC\InRoomPc.cs" />
|
<Compile Include="Devices\PC\InRoomPc.cs" />
|
||||||
<Compile Include="Devices\PC\Laptop.cs" />
|
<Compile Include="Devices\PC\Laptop.cs" />
|
||||||
|
|||||||
@@ -296,8 +296,13 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
|||||||
|
|
||||||
if(!CommandQueueInProgress)
|
if(!CommandQueueInProgress)
|
||||||
SendNextQueuedCommand();
|
SendNextQueuedCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void RunPreset(int data)
|
||||||
|
{
|
||||||
|
SendLine(String.Format("Device recallPreset {0}", data ));
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds a raw string command to the queue
|
/// Adds a raw string command to the queue
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using PepperDash.Essentials.Core;
|
|||||||
|
|
||||||
namespace PepperDash.Essentials.Devices.Common.DSP
|
namespace PepperDash.Essentials.Devices.Common.DSP
|
||||||
{
|
{
|
||||||
public abstract class DspBase : EssentialsDevice
|
public abstract class DspBase : EssentialsDevice, IDspPreset
|
||||||
{
|
{
|
||||||
public Dictionary<string, DspControlPoint> LevelControlPoints { get; private set; }
|
public Dictionary<string, DspControlPoint> LevelControlPoints { get; private set; }
|
||||||
|
|
||||||
@@ -17,7 +17,9 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
|||||||
|
|
||||||
public Dictionary<string, DspControlPoint> SwitcherControlPoints { get; private set; }
|
public Dictionary<string, DspControlPoint> SwitcherControlPoints { get; private set; }
|
||||||
|
|
||||||
public abstract void RunPreset(string name);
|
public abstract void RunPreset(string name);
|
||||||
|
|
||||||
|
public abstract void RunPreset(int data);
|
||||||
|
|
||||||
public DspBase(string key, string name) :
|
public DspBase(string key, string name) :
|
||||||
base(key, name) { }
|
base(key, name) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user