Skip to content

Commit d508511

Browse files
committed
Updated docs
1 parent f2db909 commit d508511

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

site/source/docs/api_reference/wasm_audio_worklets.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ which resumes the audio context when the user clicks on the DOM Canvas element t
126126
"noise-generator", &options, &GenerateNoise, 0);
127127
128128
// Connect it to audio context destination
129-
EM_ASM({emscriptenGetAudioObject($0).connect(emscriptenGetAudioObject($1).destination)},
130-
wasmAudioWorklet, audioContext);
129+
emscripten_audio_worklet_node_connect(audioContext, wasmAudioWorklet);
131130
132131
// Resume context on mouse click
133132
emscripten_set_click_callback("canvas", (void*)audioContext, 0, OnCanvasClick);

0 commit comments

Comments
 (0)