Creates and initializes an AudioWorkletNode bound to the FluexGL DSP WebAssembly module.
function CreateAudioWorkletNode<T = any>(
context: AudioContext,
name: AudioWorkletProcessorNames | string,
data: T
): AudioWorkletNode | null;
The CreateAudioWorkletNode() function constructs an AudioWorkletNode configured for FluexGL DSP processing.
The function:
sampleRate)This utility is the primary factory for creating DSP-enabled AudioWorklet nodes and should be used instead of instantiating AudioWorkletNode directly.
context: AudioContext – The AudioContext on which the AudioWorkletNode will be created.name: AudioWorkletProcessorNames | string – The registered AudioWorklet processor name.data: T – Initial parameter data passed to the processor, merged with runtime metadata.AudioWorkletNode – A fully configured AudioWorklet node ready for DSP processing.null – Returned if the WebAssembly module is unavailable or node creation fails.ERROR:FLUEXGL-DSP@0004The WebAssembly module has not been compiled or loaded correctly.
This error is emitted if CreateAudioWorkletNode() is called before the DSP pipeline has been initialized.
ERROR:FLUEXGL-DSP@0005Failed to create AudioWorklet node.
Possible causes include:
Additional diagnostic information is logged via the internal debug logger.