fix more possible crashes when deleting ins

and added a fatal error if implementation is missing
This commit is contained in:
tildearrow 2023-01-19 00:37:37 -05:00
parent bb4dc21603
commit c1e26ee749
34 changed files with 111 additions and 10 deletions

View file

@ -679,6 +679,13 @@ void DivPlatformYM2608Ext::notifyInsChange(int ins) {
}
}
void DivPlatformYM2608Ext::notifyInsDeletion(void* ins) {
DivPlatformYM2608::notifyInsDeletion(ins);
for (int i=0; i<4; i++) {
opChan[i].std.notifyInsDeletion((DivInstrument*)ins);
}
}
int DivPlatformYM2608Ext::init(DivEngine* parent, int channels, int sugRate, const DivConfig& flags) {
DivPlatformYM2608::init(parent,channels,sugRate,flags);
for (int i=0; i<4; i++) {