- Modify
ensurePreviewGraphintargets/wasm/js/demo.jsto create aScriptProcessorNodeinstead of an offlinewetElement. - Map
onaudioprocesson the script node to pass audio blocks to the WASMapi.processfunction. - Clean up references to
wetElement(or safely ignore them by keepingpreviewGraph.wetElement = null). - Reconnect the audio graph:
drySource -> effectNode -> wetGain -> destination. - Ensure
processStereoBuffercall is followed byapi.resetso the real-time processor starts with clean DSP state. - Verify no regressions on offline processing/download functionality.
- Run
pre_commit_instructionstool to verify checklist. - Submit.