mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-04 03:11:08 +00:00
Update webaudio example to the 2018 edition
This commit is contained in:
parent
67c99a8b08
commit
00d4c6b5a5
examples/webaudio
@ -2,6 +2,7 @@
|
|||||||
name = "webaudio"
|
name = "webaudio"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["The wasm-bindgen Developers"]
|
authors = ["The wasm-bindgen Developers"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
extern crate wasm_bindgen;
|
|
||||||
extern crate web_sys;
|
|
||||||
|
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
use web_sys::{AudioContext, OscillatorType};
|
use web_sys::{AudioContext, OscillatorType};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user