Exemplo n.º 1
0
        public void NewMixer(MixEffectBlockId mixerId)
        {
            var newMixer = new Mixer()
            {
                MixerId = mixerId,
                Program = false,
                Preview = false
            };

            Mixer.Add(newMixer);
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 public static bool IsAvailable(this MixEffectBlockId id, DeviceProfile profile)
 {
     return(id.IsValid() && (int)id < profile.MixEffectBlocks);
 }