Fix AY89x0 regression

This commit is contained in:
cam900 2022-09-26 07:28:04 +09:00
parent 89ece073f6
commit b8d2c51a14
5 changed files with 147 additions and 105 deletions

View file

@ -54,9 +54,11 @@ class DivPlatformAY8910: public DivDispatch {
return dac?0:(envelope<<2);
}
PSGMode():
val(1) {}
} psgMode;
PSGMode(unsigned char v=0):
val(v) {}
};
PSGMode currPSGMode;
PSGMode nextPSGMode;
struct DAC {
int sample, rate, period, pos, out;
@ -83,7 +85,8 @@ class DivPlatformAY8910: public DivDispatch {
pitch2=0;
}
Channel():
psgMode(PSGMode()),
currPSGMode(PSGMode(0)),
nextPSGMode(PSGMode(1)),
dac(DAC()),
freq(0),
baseFreq(0),