mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
Fixes DMPS preset recall. Adds event to catch vumeter event ID and exit (can spam the event handler)
This commit is contained in:
parent
7d89f51dcf
commit
60ed2ea537
2 changed files with 9 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ namespace PepperDash.Essentials.DM
|
|||
case DMOutputEventIds.OutputVuFeedBackEventId:
|
||||
{
|
||||
//Frequently called event that isn't needed
|
||||
break;
|
||||
return;
|
||||
}
|
||||
case DMOutputEventIds.MasterVolumeFeedBackEventId:
|
||||
{
|
||||
|
|
@ -183,7 +183,7 @@ namespace PepperDash.Essentials.DM
|
|||
var mixer = MasterVolumeLevel as DmpsAudioOutputWithMixer;
|
||||
if (mixer != null)
|
||||
{
|
||||
trilist.SetUShortSigAction(3, mixer.RecallPreset);
|
||||
trilist.SetUShortSigAction(joinMap.MixerPresetRecall.JoinNumber, mixer.RecallPreset);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -266,6 +266,7 @@ namespace PepperDash.Essentials.DM
|
|||
|
||||
public void RecallPreset(ushort preset)
|
||||
{
|
||||
Debug.Console(1, "DMPS Recalling Preset {0}", preset);
|
||||
Mixer.PresetNumber.UShortValue = preset;
|
||||
Mixer.RecallPreset();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -895,6 +895,12 @@ namespace PepperDash.Essentials.DM
|
|||
{
|
||||
Debug.Console(2, this, "DMOutputChange Output: {0} EventId: {1}", args.Number, args.EventId.ToString());
|
||||
|
||||
if (args.EventId == DMOutputEventIds.OutputVuFeedBackEventId)
|
||||
{
|
||||
//Frequently called event that isn't needed
|
||||
return;
|
||||
}
|
||||
|
||||
var output = args.Number;
|
||||
|
||||
DMOutput outputCard = Dmps.SwitcherOutputs[output] as DMOutput;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue