games/gb: crash and audio fix

This commit is contained in:
aiju 2012-04-14 20:53:42 +02:00
parent 3b9b7a6ab8
commit 83e3b1ce1a
2 changed files with 2 additions and 0 deletions

View file

@ -170,6 +170,7 @@ dosample(short *smp)
ch4sr |= k; ch4sr |= k;
ch4c = 0; ch4c = 0;
} }
ch4c++;
if(ch4sr & 1) if(ch4sr & 1)
ch4s = -1; ch4s = -1;
else else

View file

@ -81,6 +81,7 @@ loadstate(char *file)
clock = get32(); clock = get32();
ppuclock = get32(); ppuclock = get32();
divclock = get32(); divclock = get32();
timerclock = get32();
timerfreq = get32(); timerfreq = get32();
timer = get32(); timer = get32();
rombank = get32(); rombank = get32();