You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert(EmAudio[contextHandle],`Called emscripten_audio_worklet_node_connect() with an invalid AudioContext handle ${contextHandle}!`);
299
-
assert(EmAudio[contextHandle]instanceof(window.AudioContext||window.webkitAudioContext),`Called emscripten_audio_worklet_node_connect() on context handle ${contextHandle} that is not an AudioContext, but of type ${typeofEmAudio[contextHandle]} (${EmAudio[contextHandle]})`);
300
-
assert(EmAudio[workletNode],`Called emscripten_audio_worklet_node_connect() with an invalid AudioWorkletNode handle ${workletNode}`);
301
-
assert(EmAudio[workletNode].connect,`Called emscripten_audio_worklet_node_connect() on a handle ${workletNode} that is not an AudioWorkletNode, but of type ${typeofEmAudio[workletNode]} (${EmAudio[workletNode]})`);
300
+
assert(srcNode,`Called emscripten_audio_node_connect() with an invalid AudioNode handle ${source}`);
301
+
assert(srcNodeinstanceofwindow.AudioNode,`Called emscripten_audio_node_connect() on handle ${source} that is not an AudiotNode, but of type ${srcNode}`);
302
+
assert(dstNode,`Called emscripten_audio_node_connect() with an invalid AudioNode handle ${destination}!`);
303
+
assert(dstNodeinstanceof(window.AudioContext||window.webkitAudioContext)||dstNodeinstanceofwindow.AudioNode,`Called emscripten_audio_node_connect() on handle ${destination} that is not an AudioContext or AudioNode, but of type ${dstNode}`);
302
304
#endif
303
305
#if WEBAUDIO_DEBUG
304
-
console.log(`Connecting worklet with node ID ${workletNode} to Web Audio context with ID ${contextHandle}`);
306
+
console.log(`Connecting audio node ID ${source} to audio node ID ${destination} (${srcNode} to ${dstNode})`);
// userData4: A custom userdata pointer to pass to the callback function. This value will be passed on to the call to the given EmscriptenWorkletNodeProcessCallback callback function.
0 commit comments