Example #1
0
        public PokeySound(DeserializationContext input, MachineBase m) : this(m)
        {
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }

            input.CheckVersion(1);
            _lastUpdateCpuClock = input.ReadUInt64();
            _bufferIndex        = input.ReadInt32();
            _audf                = input.ReadBytes();
            _audc                = input.ReadBytes();
            _audctl              = input.ReadByte();
            _skctl               = input.ReadByte();
            _output              = input.ReadBytes();
            _outvol              = input.ReadBytes();
            _divideMax           = input.ReadIntegers(4);
            _divideCount         = input.ReadIntegers(4);
            _pokeyTicks          = input.ReadInt32();
            _pokeyTicksPerSample = input.ReadInt32();
            _baseMultiplier      = input.ReadInt32();
            _poly04Counter       = input.ReadInt32();
            _poly05Counter       = input.ReadInt32();
            _poly17Counter       = input.ReadInt32();
            _poly17Size          = input.ReadInt32();
        }
Example #2
0
        public Cart78SG(DeserializationContext input) : base(input)
        {
            var version = input.CheckVersion(1, 2);

            LoadRom(input.ReadBytes());
            Bank = input.ReadIntegers(4);
            if (version == 1)
            {
                input.ReadInt32();
            }
            RAM = input.ReadOptionalBytes(0x4000);
        }
Example #3
0
        public PokeySound(DeserializationContext input, MachineBase m) : this(m)
        {
            if (input == null)
                throw new ArgumentNullException("input");

            input.CheckVersion(1);
            _lastUpdateCpuClock = input.ReadUInt64();
            _bufferIndex = input.ReadInt32();
            _audf = input.ReadBytes();
            _audc = input.ReadBytes();
            _audctl = input.ReadByte();
            _skctl = input.ReadByte();
            _output = input.ReadBytes();
            _outvol = input.ReadBytes();
            _divideMax = input.ReadIntegers(4);
            _divideCount = input.ReadIntegers(4);
            _pokeyTicks = input.ReadInt32();
            _pokeyTicksPerSample = input.ReadInt32();
            _baseMultiplier = input.ReadInt32();
            _poly04Counter = input.ReadInt32();
            _poly05Counter = input.ReadInt32();
            _poly17Counter = input.ReadInt32();
            _poly17Size = input.ReadInt32();
        }