Skip to content

Commit c594988

Browse files
committed
jack: bump to 0.13.0 and fix compliation
1 parent f947cef commit c594988

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ num-traits = { version = "0.2.6", optional = true }
4545
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd"))'.dependencies]
4646
alsa = "0.9"
4747
libc = "0.2"
48-
jack = { version = "0.12", optional = true }
48+
jack = { version = "0.13.0", optional = true }
4949

5050
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
5151
core-foundation-sys = "0.8.2" # For linking to CoreFoundation.framework and handling device name `CFString`s.

src/host/jack/stream.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Stream {
3737
let mut port_names: Vec<String> = vec![];
3838
// Create ports
3939
for i in 0..channels {
40-
let port_try = client.register_port(&format!("in_{}", i), jack::AudioIn);
40+
let port_try = client.register_port(&format!("in_{}", i), jack::AudioIn::default());
4141
match port_try {
4242
Ok(port) => {
4343
// Get the port name in order to later connect it automatically
@@ -102,7 +102,7 @@ impl Stream {
102102
let mut port_names: Vec<String> = vec![];
103103
// Create ports
104104
for i in 0..channels {
105-
let port_try = client.register_port(&format!("out_{}", i), jack::AudioOut);
105+
let port_try = client.register_port(&format!("out_{}", i), jack::AudioOut::default());
106106
match port_try {
107107
Ok(port) => {
108108
// Get the port name in order to later connect it automatically
@@ -437,7 +437,7 @@ impl JackNotificationHandler {
437437
}
438438

439439
impl jack::NotificationHandler for JackNotificationHandler {
440-
fn shutdown(&mut self, _status: jack::ClientStatus, reason: &str) {
440+
unsafe fn shutdown(&mut self, _status: jack::ClientStatus, reason: &str) {
441441
self.send_error(format!("JACK was shut down for reason: {}", reason));
442442
}
443443

0 commit comments

Comments
 (0)