add notifyWaveChange

fixes #8
This commit is contained in:
tildearrow 2022-01-18 00:25:10 -05:00
parent af30d4990a
commit 345962092e
11 changed files with 49 additions and 0 deletions

View file

@ -324,6 +324,13 @@ void DivPlatformGB::notifyInsChange(int ins) {
}
}
void DivPlatformGB::notifyWaveChange(int wave) {
if (chan[2].wave==wave) {
updateWave();
if (!chan[2].keyOff) chan[2].keyOn=true;
}
}
void DivPlatformGB::notifyInsDeletion(void* ins) {
for (int i=0; i<4; i++) {
chan[i].std.notifyInsDeletion((DivInstrument*)ins);