removed IHasDspPreset from Tesira Classes

This commit is contained in:
Trevor Payne
2020-10-21 16:59:45 -05:00
parent a9524bcc33
commit d9f891dfb1
3 changed files with 13 additions and 38 deletions

View File

@@ -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;
}
}