Add comment on end worklet param
This commit is contained in:
parent
46291bf85c
commit
c7586e96ff
1 changed files with 2 additions and 0 deletions
|
|
@ -613,6 +613,8 @@ export const releaseAudioNode = (node) => {
|
||||||
// returns true and either its active source flag is true or
|
// returns true and either its active source flag is true or
|
||||||
// any AudioNode connected to one of its inputs is actively processing.
|
// any AudioNode connected to one of its inputs is actively processing.
|
||||||
if (node instanceof AudioWorkletNode) {
|
if (node instanceof AudioWorkletNode) {
|
||||||
|
// while `end` is not native to the web audio API, it is common practice in superdough
|
||||||
|
// to use that param in the worklets to trigger returning false from the processor
|
||||||
node.parameters.get('end')?.setValueAtTime(0, 0);
|
node.parameters.get('end')?.setValueAtTime(0, 0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue