2018-04-22 12:07:47 +00:00
|
|
|
extern crate asio_sys as sys;
|
|
|
|
|
|
|
|
fn main() {
|
2019-06-27 17:00:52 +00:00
|
|
|
let asio = sys::Asio::new();
|
|
|
|
for driver in asio.driver_names() {
|
2018-04-22 12:07:47 +00:00
|
|
|
println!("Driver: {}", driver);
|
2019-06-27 17:00:52 +00:00
|
|
|
let driver = asio.load_driver(&driver).expect("failed to load drivers");
|
2020-01-21 13:18:16 +00:00
|
|
|
println!(
|
|
|
|
" Channels: {:?}",
|
|
|
|
driver.channels().expect("failed to get channels")
|
|
|
|
);
|
|
|
|
println!(
|
|
|
|
" Sample rate: {:?}",
|
|
|
|
driver.sample_rate().expect("failed to get sample rate")
|
|
|
|
);
|
2018-04-22 12:07:47 +00:00
|
|
|
}
|
|
|
|
}
|