mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
added IDspPreset Interface
Implemented IDspPreset Interface on internal Tesira DSP Resolves #457
This commit is contained in:
parent
f95b50c99d
commit
1484c26434
4 changed files with 21 additions and 4 deletions
|
|
@ -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\EssentialsDevice.cs" />
|
||||
<Compile Include="Devices\GenericIRController.cs" />
|
||||
<Compile Include="Devices\IDspPreset.cs" />
|
||||
<Compile Include="Devices\IProjectorInterfaces.cs" />
|
||||
<Compile Include="Devices\PC\InRoomPc.cs" />
|
||||
<Compile Include="Devices\PC\Laptop.cs" />
|
||||
|
|
|
|||
|
|
@ -298,6 +298,11 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
|||
SendNextQueuedCommand();
|
||||
}
|
||||
|
||||
public override void RunPreset(int data)
|
||||
{
|
||||
SendLine(String.Format("Device recallPreset {0}", data ));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a raw string command to the queue
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ using PepperDash.Essentials.Core;
|
|||
|
||||
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; }
|
||||
|
||||
|
|
@ -19,6 +19,8 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
|||
|
||||
public abstract void RunPreset(string name);
|
||||
|
||||
public abstract void RunPreset(int data);
|
||||
|
||||
public DspBase(string key, string name) :
|
||||
base(key, name) { }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue