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:
parent
f7c503ff05
commit
c524f63000
4 changed files with 126 additions and 123 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue