public void NewMixer(MixEffectBlockId mixerId) { var newMixer = new Mixer() { MixerId = mixerId, Program = false, Preview = false }; Mixer.Add(newMixer); }
public static bool IsAvailable(this VideoSource src, MixEffectBlockId meId) { var attr = src.GetPossibleAttribute <VideoSource, VideoSourceAvailabilityAttribute>(); if (attr == null) { return(false); } return(attr.MeAvailability.Includes(meId)); }
public MixEffectBlock(MixEffectBlockId id) { Index = id; Program = new ProgramPreview(VideoSource.ColorBars); Preview = new ProgramPreview(VideoSource.Input1); NextTransition = new NextTransition(); TransitionStyle = new TransitionStyle.XmlTransitionStyle(); Keys = new List <MixEffectsKey>(); FadeToBlack = new FadeToBlack(); }
public static bool Includes(this MeAvailability me, MixEffectBlockId id) { switch (id) { case MixEffectBlockId.One: return(me.HasFlag(MeAvailability.Me1)); case MixEffectBlockId.Two: return(me.HasFlag(MeAvailability.Me2)); default: return(false); } }
private bool IsMixerDisabled(MixEffectBlockId index) { if (index == MixEffectBlockId.One && AtemSettings.ME1 == false) { return(true); } if (index == MixEffectBlockId.Two && AtemSettings.ME2 == false) { return(true); } if (index == MixEffectBlockId.Three && AtemSettings.ME3 == false) { return(true); } if (index == MixEffectBlockId.Four && AtemSettings.ME4 == false) { return(true); } return(false); }
public static bool IsAvailable(this MixEffectBlockId id, DeviceProfile profile) { return(id.IsValid() && (int)id < profile.MixEffectBlocks); }