@webaudiomodules/api
Version:
WebAudioModules Plugin API
37 lines (27 loc) • 1.14 kB
JavaScript
/** @typedef {import('./types').WamGroup} IWamGroup */
/**
* The function can be stringified using `function.toString()`,
* then inject to the audio thread using `URL.createObjectURL()`.
* See `addFunctionModule` in the SDK.
*/
/** @param {string} groupId */
/** @param {string} groupKey */
const initializeWamGroup = (groupId, groupKey) => {
/**
* WebAudioModule v2 WamEnv API in AudioWorkletGlobalScope,
* see d.ts file for more information.
* @abstract
* @implements {IWamGroup}
*/
class WamGroup {
get groupId() { throw new Error('Not Implemented.'); return null; }
validate(groupKey) { throw new Error('Not Implemented.'); return null; }
addWam(wam) { throw new Error('Not Implemented.'); return null; }
removeWam(wam) { throw new Error('Not Implemented.'); return null; }
connectEvents(fromId, toId, output) { throw new Error('Not Implemented.'); return null; }
disconnectEvents(fromId, toId, output) { throw new Error('Not Implemented.'); return null; }
emitEvents(from, ...events) { throw new Error('Not Implemented.'); return null; }
}
return WamGroup;
};
export default initializeWamGroup;