How to use the standardized-audio-context.AudioWorkletNode function in standardized-audio-context

To help you get started, we’ve selected a few standardized-audio-context examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Tonejs / Tone.js / Tone / core / context / AudioContext.ts View on Github external
export function createAudioWorkletNode(context: AnyAudioContext, name: string, options?: Partial): AudioWorkletNode {
	assert(isDefined(stdAudioWorkletNode), "This node only works in a secure context (https or localhost)");
	// @ts-ignore
	return new stdAudioWorkletNode(context, name, options);
}