add notifyInsDeletion
prevent invalid memory access when deleting instruments
This commit is contained in:
parent
0545775de6
commit
91e8ff01cf
18 changed files with 61 additions and 0 deletions
|
|
@ -313,6 +313,12 @@ bool DivPlatformPCE::keyOffAffectsArp(int ch) {
|
|||
return true;
|
||||
}
|
||||
|
||||
void DivPlatformPCE::notifyInsDeletion(void* ins) {
|
||||
for (int i=0; i<6; i++) {
|
||||
chan[i].std.notifyInsDeletion((DivInstrument*)ins);
|
||||
}
|
||||
}
|
||||
|
||||
void DivPlatformPCE::setPAL(bool pal) {
|
||||
if (pal) { // technically there is no PAL PC Engine but oh well...
|
||||
rate=1773448/6;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue