wam-extensions
Version:
Unofficial extensions to the Web Audio Module 2 API
18 lines (17 loc) • 411 B
JavaScript
export class VideoExtension {
constructor() {
this.delegates = new Map();
this.connections = new Map();
}
setDelegate(pluginId, delegate) {
if (delegate) {
this.delegates.set(pluginId, delegate);
}
else {
this.delegates.delete(pluginId);
}
}
getDelegate(pluginId) {
return this.delegates.get(pluginId);
}
}