preparing stuff

This commit is contained in:
tildearrow 2022-11-07 19:09:01 -05:00
parent 8d8bdfd1f7
commit bb6bcab2e3
2 changed files with 7 additions and 1 deletions

View file

@ -602,6 +602,7 @@ void DivPlatformGenesisExt::reset() {
for (int i=0; i<4; i++) {
opChan[i]=DivPlatformGenesisExt::OpChannel();
opChan[i].vol=127;
opChan[i].outVol=127;
}
// channel 3 mode

View file

@ -28,8 +28,12 @@ class DivPlatformGenesisExt: public DivPlatformGenesis {
int freq, baseFreq, pitch, pitch2, portaPauseFreq, ins;
signed char konCycles;
bool active, insChanged, freqChanged, keyOn, keyOff, portaPause, inPorta, mask;
int vol;
int vol, outVol;
unsigned char pan;
void macroInit(DivInstrument* which) {
std.init(which);
pitch2=0;
}
OpChannel():
freqH(0),
freqL(0),
@ -48,6 +52,7 @@ class DivPlatformGenesisExt: public DivPlatformGenesis {
inPorta(false),
mask(true),
vol(0),
outVol(0),
pan(3) {}
};
OpChannel opChan[4];