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
Copy file name to clipboardExpand all lines: src/lib/libwebaudio.js
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -245,12 +245,13 @@ let LibraryWebAudio = {
245
245
assert(EmAudio[contextHandle]instanceof(window.AudioContext||window.webkitAudioContext),`Called emscripten_create_wasm_audio_worklet_processor_async() on a context handle ${contextHandle} that is not an AudioContext, but of type ${typeofEmAudio[contextHandle]}`);
console.log(`emscripten_create_wasm_audio_worklet_processor_async() creating a new AudioWorklet processor with name ${UTF8ToString(HEAPU32[options])}`);
267
+
console.log(`emscripten_create_wasm_audio_worklet_processor_async() creating a new AudioWorklet processor with name ${name}`);
// for space saving reasons, abbreviated from their variable names).
273
275
// Note: we can only pass clonable object, so need to pass the function
274
276
// pointer and not the wasm function object.
275
-
'_wpn': UTF8ToString(HEAPU32[options]),
277
+
'_wpn': name,
276
278
'ap': audioParams,
277
279
'ch': contextHandle,
278
280
'cb': {{{toIndexType('callback')}}},
@@ -287,18 +289,20 @@ let LibraryWebAudio = {
287
289
assert(EmAudio[contextHandle],`Called emscripten_create_wasm_audio_worklet_node() with a nonexisting/already freed Web Audio Context handle ${contextHandle}!`);
288
290
assert(EmAudio[contextHandle]instanceof(window.AudioContext||window.webkitAudioContext),`Called emscripten_create_wasm_audio_worklet_node() on a context handle ${contextHandle} that is not an AudioContext, but of type ${typeofEmAudio[contextHandle]}`);
0 commit comments