Esempio n. 1
0
        private static List <Tuple <DownstreamKeyId, IBMDSwitcherDownstreamKey> > GetKeyers(AtemMockServerWrapper helper)
        {
            var iterator = AtemSDKConverter.CastSdk <IBMDSwitcherDownstreamKeyIterator>(helper.Helper.SdkSwitcher.CreateIterator);

            var             result = new List <Tuple <DownstreamKeyId, IBMDSwitcherDownstreamKey> >();
            DownstreamKeyId index  = 0;

            for (iterator.Next(out IBMDSwitcherDownstreamKey r); r != null; iterator.Next(out r))
            {
                result.Add(Tuple.Create(index, r));
                index++;
            }

            return(result);
        }
Esempio n. 2
0
 public static bool IsAvailable(this DownstreamKeyId id, DeviceProfile profile)
 {
     return(id.IsValid() && (int)id < profile.DownstreamKeys);
 }