示例#1
0
        public DeviceData(Stream stream)
            : base(stream)
        {
            Target  = new DeviceTargetInfo(stream);
            Version = new VersionInfo(stream);

            // look ahead, sometimes comment is skipped
            if (Frame.PeekFourCC(stream) == "DDIC")
            {
                Comment = new MappingFileComment(stream);
            }

            Ports = new DevicePorts(stream);

            // look ahead, sometimes midi definitions are skipped
            if (Frame.PeekFourCC(stream) == "DDDC")
            {
                MidiDefinitions = new MidiDefinitionsContainer(stream);
            }

            // look ahead, sometimes mappings are skipped
            if (Frame.PeekFourCC(stream) == "DDCB")
            {
                Mappings = new MappingsContainer(stream);
            }

            // look ahead, sometimes dvst is skipped
            if (Frame.PeekFourCC(stream) == "DVST")
            {
                Dvst = new DVST(stream);
            }
        }
示例#2
0
 public DeviceData(string traktorVersion)
     : base("DDAT")
 {
     Target  = new DeviceTargetInfo();
     Version = new VersionInfo(traktorVersion);
     Ports   = new DevicePorts();
 }