mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-19 06:34:56 +00:00
removed IHasDspPreset from Tesira Classes
This commit is contained in:
@@ -305,26 +305,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
||||
SendNextQueuedCommand();
|
||||
}
|
||||
|
||||
public void RecallPreset(IDspPreset preset)
|
||||
{
|
||||
if (preset == null) return;
|
||||
|
||||
var tesiraPreset = preset as TesiraDspPreset;
|
||||
|
||||
if (tesiraPreset == null) return;
|
||||
if (!String.IsNullOrEmpty(tesiraPreset.PresetName))
|
||||
{
|
||||
SendLine(String.Format("Device RecallPreset {0}", tesiraPreset.PresetName));
|
||||
}
|
||||
if (tesiraPreset.PresetId >= 1000)
|
||||
{
|
||||
SendLine(String.Format("Device RecallPreset {0}", tesiraPreset.PresetId));
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Console(0, this, "Preset {0} unable to be recalled, missing identifier", tesiraPreset.Name);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds a raw string command to the queue
|
||||
@@ -420,12 +400,4 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
||||
}
|
||||
}
|
||||
|
||||
public class TesiraDspPreset : IDspPreset
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public readonly string PresetName;
|
||||
public readonly int PresetId;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user