cpal/asio-sys/examples/test.rs

12 lines
434 B
Rust
Raw Normal View History

2018-04-22 12:07:47 +00:00
extern crate asio_sys as sys;
fn main() {
let asio = sys::Asio::new();
for driver in asio.driver_names() {
2018-04-22 12:07:47 +00:00
println!("Driver: {}", driver);
let driver = asio.load_driver(&driver).expect("failed to load drivers");
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
}
}