Add ack message for worklet death; remove max pool size
This commit is contained in:
parent
753dc48b69
commit
7c5f53f9ae
4 changed files with 34 additions and 9 deletions
|
|
@ -252,7 +252,10 @@ export async function onTriggerSynth(t, value, onended, tables, cps, frameLen) {
|
|||
});
|
||||
source.port.postMessage({ type: 'initialize', payload });
|
||||
source.port.onmessage = (e) => {
|
||||
if (e.data.type === 'died') markWorkletAsDead(source);
|
||||
if (e.data.type === 'died') {
|
||||
markWorkletAsDead(source);
|
||||
source.port.postMessage({ type: 'diedACK' });
|
||||
}
|
||||
source.port.onmessage = null;
|
||||
};
|
||||
if (ac.currentTime > t) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue