trunk icon indicating copy to clipboard operation
trunk copied to clipboard

Audio worklet support

Open rfwatson opened this issue 4 years ago • 1 comments

Add support for bundling audio worklets.

Audio worklets are somewhat similar to web workers but have some different restrictions/challenges. This list isn't necessarily exhaustive, just what I remember from hacking with this previously:

  1. Worklets are loaded using audioWorklet property instead of new Worker()
  2. importScripts is not available in audio worklet scope
  3. TextEncoder/TextDecoder not available in audio worklet scope, these are used by wasm-bindgen glue code so would probably have to be polyfilled

Related wasm-pack issue: https://github.com/rustwasm/wasm-pack/issues/689

I'd be potentially interested in helping with this, but opening this issue for tracking purposes.

rfwatson avatar Nov 11 '20 08:11 rfwatson

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 07 '23 00:12 github-actions[bot]