This commit is contained in:
AArt1256 2024-08-09 13:09:06 +03:00
parent 741d5d86c1
commit 7fa61a564c
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ const char* regCheatSheetSupervision[]={
}; };
unsigned char noiseReg[3]; unsigned char noiseReg[3];
unsigned char kon[3]; unsigned char kon[4];
unsigned char initWrite[4]; unsigned char initWrite[4];
const char** DivPlatformSupervision::getRegisterSheet() { const char** DivPlatformSupervision::getRegisterSheet() {
@ -436,7 +436,7 @@ void DivPlatformSupervision::reset() {
memset(tempL,0,32*sizeof(int)); memset(tempL,0,32*sizeof(int));
memset(tempR,0,32*sizeof(int)); memset(tempR,0,32*sizeof(int));
memset(noiseReg,0,3*sizeof(unsigned char)); memset(noiseReg,0,3*sizeof(unsigned char));
memset(kon,0,3*sizeof(unsigned char)); memset(kon,0,4*sizeof(unsigned char));
memset(initWrite,1,sizeof(unsigned char)); memset(initWrite,1,sizeof(unsigned char));
sampleOffset=0; sampleOffset=0;
} }

View file

@ -30,7 +30,7 @@ class DivPlatformSupervision: public DivDispatch {
int sample, hasOffset; // again, for channel 3 ONLY int sample, hasOffset; // again, for channel 3 ONLY
bool setPos; bool setPos;
Channel(): Channel():
SharedChannel<signed char>(31), SharedChannel<signed char>(63),
duty(0), duty(0),
len(0x1f), len(0x1f),
pan(3), pan(3),