fix(wasm): request permission for media autoplay if needed

This commit is contained in:
Pascal Engélibert 2022-08-28 19:33:41 +02:00
commit 431789189a
Signed by: tuxmain
GPG key ID: 3504BC6D362F7DCA
13 changed files with 43 additions and 466 deletions

View file

@ -30,8 +30,6 @@ cargo build --release
### WASM
**Audio does not work in WASM!**
```bash
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
@ -44,10 +42,12 @@ python3 -m http.server
## Audio
This game uses [HexoDSP](https://github.com/WeirdConstructor/HexoDSP) for audio synthesis.
This game used [HexoDSP](https://github.com/WeirdConstructor/HexoDSP) for audio synthesis.
The synthetizer matrix can be edited using [HexoSynth](https://github.com/WeirdConstructor/HexoSynth) visual editor.
However we could not get this working in WASM, hence we used simple playback audio instead for the jam. The concept of procedural audio is not abandonned but it will be for another time.
## Develop
Skip to level `N: u32` with the command `bevyjam <N>`.