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
[AUDIO_WORKLET] Add support for MEMORY64 with 2GB and 4GB heap (#24732)
This pulls the changes out of #23508 to add just the `MEMORY64` support.
The already merged interactive tests (from #23659) can be run with:
```
test/runner.py interactive_2gb.test_audio_worklet_params_mixing
test/runner.py interactive64_4gb.test_audio_worklet_params_mixing
```
The browser tests with wasm64 have been re-enabled.
Note: the intention is to add the performance improvements (from last
October) once this is merged (which are still relevant and produce the
same improvements).
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])}`);
244
+
console.log(`emscripten_create_wasm_audio_worklet_processor_async() creating a new AudioWorklet processor with name ${processorName}`);
// Deliberately mangled and short names used here ('_wpn', the 'Worklet
247
249
// Processor Name' used as a 'key' to verify the message type so as to
248
250
// not get accidentally mixed with user submitted messages, the remainder
249
251
// for space saving reasons, abbreviated from their variable names).
250
-
'_wpn': UTF8ToString(HEAPU32[options]),
252
+
'_wpn': processorName,
251
253
audioParams,
252
254
contextHandle,
253
255
callback,
@@ -262,18 +264,20 @@ var LibraryWebAudio = {
262
264
assert(EmAudio[contextHandle],`Called emscripten_create_wasm_audio_worklet_node() with a nonexisting/already freed Web Audio Context handle ${contextHandle}!`);
263
265
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