lots of changes

- GUI: ability to load files
- GUI: arrow key navigation
- fix sample volumes
This commit is contained in:
tildearrow 2021-12-15 00:37:27 -05:00
parent 29d7be032a
commit 52087edceb
30 changed files with 377 additions and 37 deletions

View file

@ -24,3 +24,9 @@ bool DivDispatch::keyOffAffectsArp(int ch) {
int DivDispatch::init(DivEngine* p, int channels, int sugRate, bool pal) {
return 0;
}
void DivDispatch::quit() {
}
DivDispatch::~DivDispatch() {
}

View file

@ -377,3 +377,9 @@ int DivPlatformArcade::init(DivEngine* p, int channels, int sugRate, bool pal) {
return 13;
}
void DivPlatformArcade::quit() {
}
DivPlatformArcade::~DivPlatformArcade() {
}

View file

@ -53,5 +53,7 @@ class DivPlatformArcade: public DivDispatch {
void tick();
bool isStereo();
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformArcade();
};
#endif

View file

@ -314,3 +314,9 @@ int DivPlatformC64::init(DivEngine* p, int channels, int sugRate, bool pal) {
return 3;
}
void DivPlatformC64::quit() {
}
DivPlatformC64::~DivPlatformC64() {
}

View file

@ -59,6 +59,8 @@ class DivPlatformC64: public DivDispatch {
void tick();
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void setChipModel(bool is6581);
void quit();
~DivPlatformC64();
};
#endif

View file

@ -75,3 +75,9 @@ int DivPlatformDummy::init(DivEngine* p, int channels, int sugRate, bool pal) {
reset();
return channels;
}
void DivPlatformDummy::quit() {
}
DivPlatformDummy::~DivPlatformDummy() {
}

View file

@ -20,4 +20,6 @@ class DivPlatformDummy: public DivDispatch {
void reset();
void tick();
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformDummy();
};

View file

@ -295,3 +295,10 @@ int DivPlatformGB::init(DivEngine* p, int channels, int sugRate, bool pal) {
reset();
return 4;
}
void DivPlatformGB::quit() {
delete gb;
}
DivPlatformGB::~DivPlatformGB() {
}

View file

@ -42,6 +42,8 @@ class DivPlatformGB: public DivDispatch {
void tick();
bool isStereo();
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformGB();
};
#endif

View file

@ -413,3 +413,10 @@ int DivPlatformGenesis::init(DivEngine* p, int channels, int sugRate, bool pal)
reset();
return 10;
}
void DivPlatformGenesis::quit() {
psg.quit();
}
DivPlatformGenesis::~DivPlatformGenesis() {
}

View file

@ -56,5 +56,7 @@ class DivPlatformGenesis: public DivDispatch {
bool isStereo();
bool keyOffAffectsArp(int ch);
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformGenesis();
};
#endif

View file

@ -277,3 +277,10 @@ int DivPlatformGenesisExt::init(DivEngine* parent, int channels, int sugRate, bo
reset();
return 13;
}
void DivPlatformGenesisExt::quit() {
DivPlatformGenesis::quit();
}
DivPlatformGenesisExt::~DivPlatformGenesisExt() {
}

View file

@ -20,4 +20,6 @@ class DivPlatformGenesisExt: public DivPlatformGenesis {
void tick();
bool keyOffAffectsArp(int ch);
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformGenesisExt();
};

View file

@ -310,3 +310,9 @@ int DivPlatformNES::init(DivEngine* p, int channels, int sugRate, bool pal) {
reset();
return 5;
}
void DivPlatformNES::quit() {
}
DivPlatformNES::~DivPlatformNES() {
}

View file

@ -48,6 +48,8 @@ class DivPlatformNES: public DivDispatch {
void tick();
bool keyOffAffectsArp(int ch);
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformNES();
};
#endif

View file

@ -304,3 +304,10 @@ int DivPlatformPCE::init(DivEngine* p, int channels, int sugRate, bool pal) {
reset();
return 6;
}
void DivPlatformPCE::quit() {
delete pce;
}
DivPlatformPCE::~DivPlatformPCE() {
}

View file

@ -60,6 +60,8 @@ class DivPlatformPCE: public DivDispatch {
bool isStereo();
bool keyOffAffectsArp(int ch);
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformPCE();
};
#endif

View file

@ -183,3 +183,10 @@ int DivPlatformSMS::init(DivEngine* p, int channels, int sugRate, bool pal) {
reset();
return 4;
}
void DivPlatformSMS::quit() {
delete sn;
}
DivPlatformSMS::~DivPlatformSMS() {
}

View file

@ -38,6 +38,8 @@ class DivPlatformSMS: public DivDispatch {
void tick();
bool keyOffAffectsArp(int ch);
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformSMS();
};
#endif

View file

@ -529,3 +529,10 @@ int DivPlatformYM2610::init(DivEngine* p, int channels, int sugRate, bool pal) {
reset();
return 10;
}
void DivPlatformYM2610::quit() {
delete fm;
}
DivPlatformYM2610::~DivPlatformYM2610() {
}

View file

@ -66,5 +66,7 @@ class DivPlatformYM2610: public DivDispatch {
bool isStereo();
bool keyOffAffectsArp(int ch);
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformYM2610();
};
#endif

View file

@ -256,3 +256,10 @@ int DivPlatformYM2610Ext::init(DivEngine* parent, int channels, int sugRate, boo
reset();
return 16;
}
void DivPlatformYM2610Ext::quit() {
DivPlatformYM2610::quit();
}
DivPlatformYM2610Ext::~DivPlatformYM2610Ext() {
}

View file

@ -20,4 +20,6 @@ class DivPlatformYM2610Ext: public DivPlatformYM2610 {
void tick();
bool keyOffAffectsArp(int ch);
int init(DivEngine* parent, int channels, int sugRate, bool pal);
void quit();
~DivPlatformYM2610Ext();
};