#sound #output #layer #compatibility #low-level #unrust #native-wasm

uni-snd

Unrust low level native/wasm compatibility layer for sound output

3 unstable releases

0.2.1 Oct 11, 2022
0.2.0 Oct 10, 2022
0.1.0 Aug 4, 2018

#486 in WebAssembly

MIT license

21KB
174 lines

unrust / uni-snd

Build Status Documentation

This library is a part of Unrust, a pure rust native/wasm game engine. This library provides a low level native/wasm compatibility layer for following components :

  • Sound output

Usage

uni-snd = "0.2.*"

See oscillator example.

Build

As web app (wasm32-unknown-unknown)

Install wasm32 target :

rustup target install wasm32-unknown-unknown

Install wasm-pack and npm

Compile the demo with

wasm-pack build examples

This creates a wasm package in examples/pkg

Run the demo with

cd www
npm install
npm run start

Open your browser at http://localhost:8080/

As desktop app (native-opengl)

cargo run --example oscillator --release

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–30MB
~451K SLoC