Audio Worklet for Emscripten
- Mentors
- hoch, mjwilson
- Organization
- Chromium
- Technologies
- javascript, html, webassembly, Emscripten, Web Audio API
- Topics
- web, audio, webassembly
Many developers are using Emscripten to port the existing C/C++ audio code to Web Assembly, but Emscripten is still using deprecated ScriptProcessorNode for audio functionality. By Design, ScriptProcessor is insecure and also harmful to user experience as it works on main thread causing security issues,and glitching audio and UI. The AudioWorklet is a fast and secure replacement of the ScriptProcessor. The aim of this project is to implement modern AudioWorklet based alternatives and update the emscripten codebase to use secure and better AudioWorklet. AudioWorklet along with Web Workers, SharedArrayBuffer and Atomics can be used to implement a general purpose solution for porting existing C/C++ projects with emscripten.