Remove stdweb in favor of js-sys, web-sys, and wasm-bindgen (#713)

This commit is contained in:
Caden Haustein 2022-10-24 20:46:28 -05:00 • committed by GitHub
parent 0965eadd5e
commit 29999e6857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 147 additions and 97 deletions

View file

@ -1,8 +1,11 @@
use std::{fmt::Display, mem};
#[cfg(target_os = "emscripten")]
use wasm_bindgen::prelude::*;
pub use dasp_sample::{FromSample, Sample, I24, I48, U24, U48};
/// Format that each sample has.
#[cfg_attr(target_os = "emscripten", wasm_bindgen)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[non_exhaustive]
pub enum SampleFormat {