A wee bit more if Jack
Some checks failed
ci/woodpecker/push/code_tests Pipeline failed
ci/woodpecker/push/pre_commit_test Pipeline failed

This commit is contained in:
2025-12-17 09:55:00 +01:00
parent 2ce3d028c6
commit 354ac29d0a
2 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
//! input.
use crossbeam_channel::bounded;
use jack::{PortFlags, PortSpec};
use std::io;
use std::str::FromStr;
@@ -9,6 +10,11 @@ fn main() {
// 1. open a client
let (client, _status) =
jack::Client::new("rust_jack_sine", jack::ClientOptions::default()).unwrap();
let ports = client.ports(None, Some(jack::AudioIn::default().jack_port_type()), PortFlags::empty());
println!("All JACK ports:");
for port in ports {
println!("{}", port);
}
// 2. register port
let out_port = client