wasm-bindgen/examples/webaudio
Alex Crichton 5b76a6291e Implement Deref for all imported JS types
This commit implements the first half of [RFC #5] where the `Deref`
trait is implemented for all imported types. The target of `Deref` is
either the first entry of the list of `extends` attribute or `JsValue`.

All examples using `.as_ref()` with various `web-sys` types have been
updated to the more ergonomic deref casts now. Additionally the
`web-sys` generation of the `extends` array has been fixed slightly to
explicitly list implementatoins in the hierarchy order to ensure the
correct target for `Deref` is chosen.

[RFC #5]: https://github.com/rustwasm/rfcs/blob/master/text/005-structural-and-deref.md
2018-11-08 11:01:34 -08:00
..
src Implement Deref for all imported JS types 2018-11-08 11:01:34 -08:00
.gitignore Initial example of using the WebAudio APIs from web-sys 2018-08-17 07:02:48 -04:00
build.sh Promote CI jobs to using stable Rust 2018-10-28 13:28:02 -07:00
Cargo.toml Don't use path dependencies in examples 2018-11-07 11:27:43 -08:00
index.html examples(webaudio): allow turning the noise off again 2018-09-26 10:37:12 -07:00
index.js Add catch(console.error) to all examples 2018-09-28 13:55:07 -07:00
package.json Fix polyfill of TextEncoder and TextDecoder 2018-09-30 10:16:20 -07:00
README.md Build examples and deploy to gh-pages 2018-09-20 20:55:02 -07:00
webpack.config.js Fix polyfill of TextEncoder and TextDecoder 2018-09-30 10:16:20 -07:00

WebAudio

View documentation for this example online or View compiled example online

You can build the example locally with:

$ ./build.sh

(or running the commands on Windows manually)

and then visiting http://localhost:8080 in a browser should run the example!