standardized-audio-context
Version:
A cross-browser wrapper for the Web Audio API which aims to closely follow the standard.
12 lines • 429 B
JavaScript
export const testAudioWorkletNodeOptionsClonability = (audioWorkletNodeOptions) => {
const { port1, port2 } = new MessageChannel();
try {
// This will throw an error if the audioWorkletNodeOptions are not clonable.
port1.postMessage(audioWorkletNodeOptions);
}
finally {
port1.close();
port2.close();
}
};
//# sourceMappingURL=test-audio-worklet-node-options-clonability.js.map