mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-02 03:29:52 +08:00
web/src/audio.ts becomes js/web/audio.ts. It creates no AudioContext before the page has had a gesture, holds the latest 10 s of what plays until then (a clip that has ended plays whole, a stream joins live), and has state, onChange, muted, resume() and close() for a page's control. test/audio.test.ts runs the worklet and the sink without a browser. Closes #17