Ejemplo n.º 1
0
 /// <summary>
 /// Resets this device
 /// </summary>
 public void Reset()
 {
     _frameBegins      = HostVm.Cpu.Tacts;
     LastRegisterIndex = 0;
     PsgState          = new PsgState(HostVm);
     for (var i = 0; i < 0x0F; i++)
     {
         PsgState[i] = 0;
     }
     FrameCount = 0;
     Overflow   = 0;
     SetRegisterValue(0);
     _soundProvider?.Reset();
     InitializeSampling();
 }