Skip to content

Commit

Permalink
Re-add rodio as a dependency in web builds
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe committed Oct 9, 2023
1 parent 8103da7 commit ec4a0f8
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 2 deletions.
98 changes: 96 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ poll-promise = { version = "0.3.0", features = ["web"] }
tokio = { version = "1.32", features = ["sync"] }
wasm-bindgen-futures = "0.4"
indexed_db_futures = "0.3.0"
rodio = { version = "0.17.1", features = [
"wasm-bindgen",
"symphonia-all",
], default-features = false }
js-sys = "0.3"
web-sys = { version = "0.3", features = [
"console",
Expand Down Expand Up @@ -224,6 +228,11 @@ opt-level = 3
members = ["command-lib", "rmxp-types", "luminol-term"]

[patch.crates-io]
# We need this for rodio to work in WebAssembly until
# https://github.com/RustAudio/cpal/pull/774
# is merged.
cpal = { git = "https://github.com/DouglasDwyer/cpal.git", rev = "91aeb4d6b02c25791f636fdf92a73637597c077a" }

# If you want to use the bleeding edge version of egui and eframe:
# egui = { git = "https://github.com/emilk/egui", branch = "master" }
# eframe = { git = "https://github.com/emilk/egui", branch = "master" }
Expand Down

0 comments on commit ec4a0f8

Please sign in to comment.