4 ms·
Looks great! For SharedArrayBuffer and CORS, I have some experience and it's not difficult to deal with. You can check my project for music live coding in bro
by chaosprint 5y ago
Looks great!
For SharedArrayBuffer and CORS, I have some experience and it's not difficult to deal with.
You can check my project for music live coding in browsers:
https://glicol.org https://glicol.org
All the audio library and langauge parser are written in Rust and compiled to WebAssembly, running in AudioWorklet thread.
The control parameter is constantly shared from main thread to AudioWorklet thread with my customised ringbuf.js to avoid GC from JS in real-time audio:
https://github.com/chaosprint/glicol https://github.com/chaosprint/glicol
I use vite.js for development; for local dev server CORS, check:
https://github.com/vitejs/vite/issues/3909 https://github.com/vitejs/vite/issues/3909
For deployment CORS, e.g. Netlify, just edit the '_header' file as:
/*
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
in the 'public' folder.
- ensiferum 5y agoYour first GitHub Link is 404
- chaosprint 5y agoNow it should be fine. Thanks. :)
- chaosprint 5y agoWow, I checked your website/desktop (https://dustinbrett.com/ https://dustinbrett.com/) again and tried to open your browser to make some music there. Apparently for Glicol you need to enable CORS. I think that's the only thing that stops the website to make sound now. But my another project QuaverSeries, the precursor of Glicol, works like a charm in your browser: https://quaverseries.web.app https://quaverseries.web.app
- DustinBrett 5y agoThanks! Glicol looks very cool. Ya I am familiar with those headers and I've actually tested it with this, the issue was that I rely on iframes for a few of my apps (Browser & Video Player w/YouTube), and those headers break it. I had some hope with `COEP: credentialless` (https://github.com/WICG/credentiallessness/blob/main/explainer.md https://github.com/WICG/credentiallessness/blob/main/explain...) but it still didn't solve my issue, so I am waiting now for anonymous iframes (https://github.com/camillelamy/explainers/blob/main/anonymous_iframes.md https://github.com/camillelamy/explainers/blob/main/anonymou...).
- chaosprint 5y agoCool. Really look forward to your update.