Improve the emscripten backend (#172)

* Use the js! macro from stdweb

* Rework the Buffer::finish method

* Use references from stdweb

* Fix emscripten warnings

* Rework the run() method to use stdweb

* Adjust timings

* Add entry in CHANGELOG
This commit is contained in:
tomaka 2017-10-22 14:17:25 +02:00 • committed by GitHub
parent f7c503ff05
commit c524f63000
4 changed files with 126 additions and 123 deletions

View file

@ -38,9 +38,16 @@ from time to time.
*/
#![recursion_limit = "512"]
#[macro_use]
extern crate lazy_static;
// Extern crate declarations with `#[macro_use]` must unfortunately be at crate root.
#[cfg(target_os = "emscripten")]
#[macro_use]
extern crate stdweb;
pub use samples_formats::{Sample, SampleFormat};
#[cfg(all(not(windows), not(target_os = "linux"), not(target_os = "freebsd"),