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
Add support for running output directly in Audio Worklet
There are some use cases where its useful to be able to run emscripten
generated code in an audio worklet without building with
`-sAUDIO_WORKLET`. One major one is for deploying in a context where
shared memory not available (i.e. no cross origin isolation)
Fixes: #25943, #25943
// if an assertion fails it cannot print the message
402
407
#if PTHREADS
403
408
assert(
404
-
#if AUDIO_WORKLET
409
+
#if ENVIRONMENT_MAY_BE_AUDIO_WORKLET
405
410
ENVIRONMENT_IS_AUDIO_WORKLET||
406
411
#endif
407
412
ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER||ENVIRONMENT_IS_NODE,'Pthreads do not work in this environment yet (need Web Workers, or an alternative to them)');
0 commit comments