This commit is contained in:
Jade (Rose) Rowland 2024-03-03 13:16:32 -05:00
parent 7f60a9e52b
commit 78a6ec2f98
3 changed files with 45 additions and 14 deletions

View file

@ -50,8 +50,8 @@ function loadWorklets() {
return workletsLoading;
}
export function getWorklet(ac, processor, params) {
const node = new AudioWorkletNode(ac, processor);
export function getWorklet(ac, processor, params, config) {
const node = new AudioWorkletNode(ac, processor, config);
Object.entries(params).forEach(([key, value]) => {
node.parameters.get(key).value = value;
});