Exemple #1
0
        // deserializing
        protected void LoadFromReader(BinaryReader reader)
        {
            info = new SidTuneInfo(reader);

            status = reader.ReadBoolean();

            int count = reader.ReadInt32();

            songSpeed = new short[count];
            for (int i = 0; i < songSpeed.Length; i++)
            {
                songSpeed[i] = reader.ReadInt16();
            }

            count      = reader.ReadInt32();
            clockSpeed = new short[count];
            for (int i = 0; i < clockSpeed.Length; i++)
            {
                clockSpeed[i] = reader.ReadInt16();
            }

            count      = reader.ReadInt32();
            songLength = new short[count];
            for (int i = 0; i < songLength.Length; i++)
            {
                songLength[i] = reader.ReadInt16();
            }

            count      = reader.ReadInt32();
            infostring = new string[count];
            for (int i = 0; i < infostring.Length; i++)
            {
                infostring[i] = reader.ReadString();
            }

            fileOffset = reader.ReadInt32();
            musDataLen = reader.ReadInt32();
        }
Exemple #2
0
 public PSid(SidTune sidtune)
 {
     this.sidtune = sidtune;
     this.info    = sidtune.info;
 }