another uninitialized variable

This commit is contained in:
tildearrow 2021-12-21 16:02:31 -05:00
parent 48f4f5835b
commit 726b457ae7
12 changed files with 15 additions and 2 deletions

View file

@ -476,6 +476,7 @@ void DivPlatformArcade::setYMFM(bool use) {
int DivPlatformArcade::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<13; i++) {
isMuted[i]=false;
}

View file

@ -326,6 +326,7 @@ void DivPlatformC64::setPAL(bool pal) {
int DivPlatformC64::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<3; i++) {
isMuted[i]=false;
}

View file

@ -74,6 +74,7 @@ void DivPlatformDummy::reset() {
int DivPlatformDummy::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<17; i++) {
isMuted[i]=false;
}

View file

@ -317,6 +317,7 @@ int DivPlatformGB::init(DivEngine* p, int channels, int sugRate, bool pal) {
isMuted[i]=false;
}
parent=p;
skipRegisterWrites=false;
rate=262144;
gb=new GB_gameboy_t;
reset();

View file

@ -432,6 +432,7 @@ void DivPlatformGenesis::setPAL(bool pal) {
int DivPlatformGenesis::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<10; i++) {
isMuted[i]=false;
}

View file

@ -327,6 +327,7 @@ void DivPlatformNES::setPAL(bool pal) {
int DivPlatformNES::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<5; i++) {
isMuted[i]=false;
}

View file

@ -37,7 +37,6 @@ class DivPlatformNES: public DivDispatch {
unsigned int dacPos;
int dacSample;
unsigned char sampleBank;
unsigned char lastPan;
float freqBase;

View file

@ -318,6 +318,7 @@ void DivPlatformPCE::setPAL(bool pal) {
int DivPlatformPCE::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<6; i++) {
isMuted[i]=false;
}

View file

@ -187,6 +187,7 @@ void DivPlatformSMS::setPAL(bool pal) {
int DivPlatformSMS::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<4; i++) {
isMuted[i]=false;
}

View file

@ -565,6 +565,7 @@ bool DivPlatformYM2610::keyOffAffectsArp(int ch) {
int DivPlatformYM2610::init(DivEngine* p, int channels, int sugRate, bool pal) {
parent=p;
skipRegisterWrites=false;
for (int i=0; i<13; i++) {
isMuted[i]=false;
}