4 releases (2 breaking)
Uses new Rust 2024
| 0.3.0 | Oct 28, 2025 |
|---|---|
| 0.3.0-rc.1 | Sep 16, 2025 |
| 0.2.0 | Aug 24, 2025 |
| 0.1.0 | Jun 4, 2025 |
#692 in Audio
237 downloads per month
Used in bevy_seedling
37KB
633 lines
A multi-threaded wasm32-unknown-unknown Web Audio
backend for Firewheel.
Currently, this backend only supports stereo inputs and outputs.
Requirements
Because this crate relies on Wasm multi-threading, it has some additional requirements.
- A nightly compiler is required along with the Rust standard library source code
(with
rustup, you can add it withrustup component add rust-src). - You'll need the
atomics,bulk-memory, andmutable-globalstarget features. These can be enabled with a.cargo/config.toml:
[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=+atomics,+bulk-memory,+mutable-globals"]
[unstable]
build-std = ["std", "core", "alloc", "panic_abort"]
- Wherever your project is served, the protocol must be secure (usually
https) and the response must include two security headers:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
# or
Cross-Origin-Embedder-Policy: credentialless
Note that credentialless may not work on Safari: the browser
may throw an error in the audio worklet upon receiving shared Wasm memory.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~30MB
~619K SLoC