A wee bit more if Jack
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
//! input.
|
//! input.
|
||||||
|
|
||||||
use crossbeam_channel::bounded;
|
use crossbeam_channel::bounded;
|
||||||
|
use jack::{PortFlags, PortSpec};
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
@@ -9,6 +10,11 @@ fn main() {
|
|||||||
// 1. open a client
|
// 1. open a client
|
||||||
let (client, _status) =
|
let (client, _status) =
|
||||||
jack::Client::new("rust_jack_sine", jack::ClientOptions::default()).unwrap();
|
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
|
// 2. register port
|
||||||
let out_port = client
|
let out_port = client
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ message DesiredAudioBacked {
|
|||||||
|
|
||||||
message AudioBackendDescription {
|
message AudioBackendDescription {
|
||||||
CoreAudioAvailableOptions core_audio_description = 1;
|
CoreAudioAvailableOptions core_audio_description = 1;
|
||||||
|
repeated string input_devices = 2;
|
||||||
|
repeated string output_devices = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CoreAudioAvailableOptions {
|
message CoreAudioAvailableOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user