diff options
author | Grissess <grissess@nexusg.org> | 2021-09-15 20:27:25 -0400 |
---|---|---|
committer | Grissess <grissess@nexusg.org> | 2021-09-15 20:27:25 -0400 |
commit | b5ef93a1d8da6f683a58ba3ed8f3cd648706d303 (patch) | |
tree | 88bf30a81be1f4f2a56873849a87ff902c1b3754 /src/main.rs | |
parent | 2b388fe415ddedfdad96bf459204d85a0be7be4a (diff) |
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 7cf1ae4..631f1b7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,11 +29,14 @@ fn main() -> Result<(), std::io::Error> { } fn main_client(args: Vec<ffi::OsString>) -> Result<(), std::io::Error> { + /* let host = if let Ok(host) = cpal::host_from_id(cpal::HostId::Jack) { host } else { cpal::default_host() }; + */ + let host = cpal::default_host(); let device = host.default_output_device().expect("no default host audio device!"); let mut conf_ranges = device.supported_output_configs().expect("could not query audio device capabilities -- audio device disconnected?"); let conf_range = conf_ranges.next().expect("audio device has no configurations!"); |