add notifyInsChange

see issue #8
This commit is contained in:
tildearrow 2022-01-17 23:59:52 -05:00
parent 8d4d47950c
commit 6d9f5db6a4
21 changed files with 155 additions and 44 deletions

View file

@ -592,6 +592,14 @@ bool DivPlatformYM2610::keyOffAffectsArp(int ch) {
return (ch>3);
}
void DivPlatformYM2610::notifyInsChange(int ins) {
for (int i=0; i<13; i++) {
if (chan[i].ins==ins) {
chan[i].insChanged=true;
}
}
}
void DivPlatformYM2610::notifyInsDeletion(void* ins) {
for (int i=4; i<7; i++) {
chan[i].std.notifyInsDeletion((DivInstrument*)ins);