vc64web/virtualc64web

new v4 restore snapshot 20 second mute bug

Closed this issue · 2 comments

before take snapshot 
  wrapper->c64->sid._dumpConfig();
  wrapper->c64->sid._dump(0);

 
 
 Chip revision : 1 ((null))  
   Enable mask : 1  
       Address : 0 0 0  
        Filter : no  
        Engine : 1 ((null))  
      Sampling : 0 ((null))  
Channel volume : 100 0 0 0  
 Master volume : 100 0  
ReSID:  
------  
    Chip model: 1 ((null))  
 Sampling rate: 43735.000000  
 CPU frequency: 985249  
Emulate filter: yes  
<empty string>  
        Volume: 15  
   Filter type: NONE  
Filter cut off: 0  
<empty string>  
Filter resonance: 0  
<empty string>  
Filter enable bits: 0  
<empty string>  
Voice 0:       Frequency: 8583  
             Pulse width: 0  
                Waveform: SAW  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 0  
            Release rate: 0  
Voice 1:       Frequency: 65535  
             Pulse width: 3520  
                Waveform: NOISE  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 10  
            Release rate: 10  
Voice 2:       Frequency: 8583  
             Pulse width: 3520  
                Waveform: SAW  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 10  
            Release rate: 10  
FastSID:  
--------  
    Chip model: 1 ((null))  
 Sampling rate: 43735.000000  
 CPU frequency: 985249  
Emulate filter: yes  
<empty string>  
        Volume: 15  
   Filter type: NONE  
Filter cut off: 0  
<empty string>  
Filter resonance: 0  
<empty string>  
Filter enable bits: 0  
<empty string>  
Voice 0:       Frequency: 8583  
             Pulse width: 0  
                Waveform: SAW  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 0  
            Release rate: 0  
Voice 1:       Frequency: 65535  
             Pulse width: 3520  
                Waveform: NOISE  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 10  
            Release rate: 10  
Voice 2:       Frequency: 8583  
             Pulse width: 3520  
                Waveform: SAW  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 10  
            Release rate: 10  
vC64 message=MSG_USER_SNAPSHOT_TAKEN, data=0







--------------------- coldstart and load snapshot  
 wrapper->c64->sid._dumpConfig();
 wrapper->c64->sid._dump(0);

load file=falcon_patrol_2xxxx.zip.vc64 len=2185858, header bytes= 56, 43, 36 
isSnapshot
vC64 message=MSG_SNAPSHOT_RESTORED, data=0 
 Chip revision : 1 ((null))  
   Enable mask : 1  
       Address : 0 0 0  
        Filter : no  
        Engine : 1 ((null))  
      Sampling : 0 ((null))  
Channel volume : 100 0 0 0  
 Master volume : 100 0  
ReSID:  
------  
    Chip model: 1 ((null))  
 Sampling rate: 44100.000000  
 CPU frequency: 985249  
Emulate filter: yes  
<empty string>  
        Volume: 0  
   Filter type: NONE  
Filter cut off: 0  
<empty string>  
Filter resonance: 0  
<empty string>  
Filter enable bits: 0  
<empty string>  
Voice 0:       Frequency: 0  
             Pulse width: 0  
                Waveform: NONE  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 0  
            Release rate: 0  
Voice 1:       Frequency: 0  
             Pulse width: 0  
                Waveform: NONE  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 0  
            Release rate: 0  
Voice 2:       Frequency: 0  
             Pulse width: 0  
                Waveform: NONE  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 0  
            Release rate: 0  
FastSID:  
--------  
    Chip model: 1 ((null))  
 Sampling rate: 44100.000000  
 CPU frequency: 985249  
Emulate filter: yes  
<empty string>  
        Volume: 15  
   Filter type: NONE  
Filter cut off: 0  
<empty string>  
Filter resonance: 0  
<empty string>  
Filter enable bits: 0  
<empty string>  
Voice 0:       Frequency: 8583  
             Pulse width: 0  
                Waveform: SAW  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 0  
            Release rate: 0  
Voice 1:       Frequency: 65535  
             Pulse width: 3520  
                Waveform: NOISE  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 10  
            Release rate: 10  
Voice 2:       Frequency: 8583  
             Pulse width: 3520  
                Waveform: SAW  
         Ring modulation: no  
               Hard sync: no  
             Attack rate: 0  
              Decay rate: 0  
            Sustain rate: 10  
            Release rate: 10  
wasm_run

I think it was a reSID bug. They use some kind of hackery to make the pipelined writes of the 85xx work in combination with FAST sampling mode. I guess you were using the 85xx in this mode.

Can you try with the latest code on the dev branch?

The bug is no more. With your patches it works as expected now. 😎

as a reference your bugreport at the vice project https://sourceforge.net/p/vice-emu/bugs/1374/