Add a wasm-bindgen based generic Web Audio backend.

This commit is contained in:
Damian Peckett 2020-01-28 22:00:53 +01:00 • committed by mitchmindtree
parent fe22704d4a
commit 6f43fc2b60
5 changed files with 447 additions and 1 deletions

View file

@ -38,3 +38,8 @@ mach = "0.3" # For access to mach_timebase type.
[target.'cfg(target_os = "emscripten")'.dependencies]
stdweb = { version = "0.1.3", default-features = false }
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
wasm-bindgen = { version = "0.2.58", optional = true }
js-sys = { version = "0.3.35" }
web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"] }