-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The DX / performance of loading plugin process, it requires to load metadata and then it creates a custom node, what if it will work more like this:
const ctx = new AudioContext();
const player = document.getElementById('soundSample');
const mediaSource = ctx.createMediaElementSource(player);
const pluginURL = "https://wasabi.i3s.unice.fr/WebAudioPluginBank/WASABI/PingPongDelay3";
// Fetch the plugin module (js module or commonjs/whatever)
const pluginModule = await fetch(pluginURL);
// Just create a plugin node (optionally it could take options after context) no need to know node
// class symbol, plugin is not aware of how it is loaded, but might have logic for additional resources // load, ex. WA
const pluginNode = new pluginModule.Node(ctx);
mediaSource.connect(node);
node.connect(ctx.destination);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels