public void Serialize(ByteArrayBuilder cmd)
        {
            cmd.AddUInt16(Inputs.Count);
            cmd.AddUInt16(Inputs.Count); // TODO - this could be a padding which just happens to be the same most of the time

            PutValue(cmd, MasterLeftLevel);
            PutValue(cmd, MasterRightLevel);
            PutValue(cmd, MasterLeftPeak);
            PutValue(cmd, MasterRightPeak);

            PutValue(cmd, MonitorLeftLevel);
            PutValue(cmd, MonitorRightLevel);
            PutValue(cmd, MonitorLeftPeak);
            PutValue(cmd, MonitorRightPeak);

            foreach (AudioMixerLevelInput input in Inputs)
            {
                cmd.AddUInt16((uint)input.Source);
            }
            cmd.PadToNearestMultipleOf4();

            foreach (AudioMixerLevelInput input in Inputs)
            {
                PutValue(cmd, input.LeftLevel);
                PutValue(cmd, input.RightLevel);
                PutValue(cmd, input.LeftPeak);
                PutValue(cmd, input.RightPeak);
            }
        }
        public void Serialize(ByteArrayBuilder cmd)
        {
            cmd.AddBoolArray(Unknown);
            cmd.AddBoolArray(Unknown2);

            cmd.AddByte(BytePattern.Take((int)Length));
            cmd.PadToNearestMultipleOf4();
        }
Example #3
0
 public void Serialize(ByteArrayBuilder cmd)
 {
     cmd.AddUInt16(Tally.Count);
     foreach (KeyValuePair <VideoSource, uint> t in Tally)
     {
         cmd.AddUInt16((uint)t.Key);
         cmd.AddUInt8(t.Value);
     }
     cmd.PadToNearestMultipleOf4();
 }
        public void Serialize(ByteArrayBuilder cmd)
        {
            cmd.AddUInt16(Tally.Count);

            foreach (Tuple <bool, bool> src in Tally)
            {
                cmd.AddBoolArray(src.Item1, src.Item2);
            }

            cmd.PadToNearestMultipleOf4();
        }
        public void Serialize(ByteArrayBuilder cmd)
        {
            cmd.AddUInt16(Tally.Count);

            foreach (var src in Tally)
            {
                cmd.AddUInt16((int)src.Key);
                cmd.AddBoolArray(src.Value.Item1, src.Value.Item2);
            }

            cmd.PadToNearestMultipleOf4();
        }
Example #6
0
        public void Serialize(ByteArrayBuilder cmd)
        {
            cmd.AddUInt16(Inputs.Count);

            foreach (KeyValuePair<AudioSource, bool> src in Inputs)
            {
                cmd.AddUInt16((int) src.Key);
                cmd.AddBoolArray(src.Value);
            }

            cmd.PadToNearestMultipleOf4();
        }
        public void Serialize(ByteArrayBuilder cmd)
        {
            cmd.AddUInt16(Tally.Count);
            cmd.Pad(6);

            foreach (KeyValuePair <Tuple <AudioSource, long>, bool> v in Tally)
            {
                cmd.AddInt64(v.Key.Item2);
                cmd.AddUInt16((uint)v.Key.Item1);
                cmd.AddBoolArray(v.Value);
            }

            cmd.PadToNearestMultipleOf4();
        }
Example #8
0
        public void Serialize(ByteArrayBuilder cmd)
        {
            cmd.AddBoolArray(CanRotate);
            cmd.AddBoolArray(CanScaleUp);

            cmd.AddUInt16(SupportedTransitions?.Count ?? 0);
            if (SupportedTransitions != null)
            {
                foreach (DVEEffect effect in SupportedTransitions)
                {
                    cmd.AddUInt8((uint)effect);
                }
            }

            cmd.PadToNearestMultipleOf4();
        }