From 78e7883fc4d211f8496c1351801a3a1bab417b2c Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 13 Jul 2022 17:52:43 +0200 Subject: [PATCH] Use a jack crate fork to fix the fallback Before this you'd get a panic in jack-sys instead. --- Cargo.lock | 6 ++---- Cargo.toml | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 21787345..f3abdd4b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1965,8 +1965,7 @@ checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" [[package]] name = "jack" version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce722655a29b13bb98ec7e8ba9dc65d670b9b37c7b1c09775c7f7516811c5a36" +source = "git+https://github.com/robbert-vdh/rust-jack.git?branch=feature/handle-library-failure#1b4055a7b9f6f6bab7646f3dc10cc9355791d706" dependencies = [ "bitflags", "jack-sys", @@ -1978,8 +1977,7 @@ dependencies = [ [[package]] name = "jack-sys" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9d70559ff166d148ccb750ddd77702af760718f3a752c731add168c22c16a9f" +source = "git+https://github.com/robbert-vdh/rust-jack.git?branch=feature/handle-library-failure#1b4055a7b9f6f6bab7646f3dc10cc9355791d706" dependencies = [ "bitflags", "lazy_static", diff --git a/Cargo.toml b/Cargo.toml index ec86e1d3..39f1c0ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -90,7 +90,8 @@ anyhow = { version = "1.0", optional = true } baseview = { git = "https://github.com/robbert-vdh/baseview.git", branch = "feature/resize", features = ["opengl"], optional = true } # All the claps! clap = { version = "3.2", features = ["derive"], optional = true } -jack = { version = "0.10.0", optional = true } +# The current upstream jack panics when it can't load the JACK library, which breaks the backend fallback +jack = { git = "https://github.com/robbert-vdh/rust-jack.git", branch = "feature/handle-library-failure", optional = true } # Used for the `vst3` feature vst3-sys = { git = "https://github.com/robbert-vdh/vst3-sys.git", branch = "fix/note-off-event", optional = true }