dev105 - prepare for Game Boy hardware sequences

issue #27
This commit is contained in:
tildearrow 2022-08-07 00:03:27 -05:00
parent 47ea8132b2
commit 9f8c96d45b
5 changed files with 66 additions and 5 deletions

View file

@ -31,6 +31,7 @@ class DivPlatformGB: public DivDispatch {
unsigned char duty, sweep;
bool active, insChanged, freqChanged, sweepChanged, keyOn, keyOff, inPorta;
signed char vol, outVol, wave;
unsigned char envVol, envDir, envLen, soundLen;
DivMacroInt std;
void macroInit(DivInstrument* which) {
std.init(which);
@ -54,7 +55,11 @@ class DivPlatformGB: public DivDispatch {
inPorta(false),
vol(15),
outVol(15),
wave(-1) {}
wave(-1),
envVol(0),
envDir(0),
envLen(0),
soundLen(0) {}
};
Channel chan[4];
DivDispatchOscBuffer* oscBuf[4];