Get asio-sys examples working with latest API updates
This commit is contained in:
parent
09fd5562be
commit
747caeee38
2 changed files with 18 additions and 38 deletions
|
|
@ -5,12 +5,9 @@ fn main() {
|
|||
|
||||
for driver in &driver_list {
|
||||
println!("Driver: {}", driver);
|
||||
}
|
||||
|
||||
if driver_list.len() > 0 {
|
||||
match sys::get_channels(&driver_list[0]) {
|
||||
Ok(channels) => println!("Channels: {:?}", channels),
|
||||
Err(e) => println!("Error retrieving channels: {}", e),
|
||||
}
|
||||
let driver = sys::Drivers::load(driver).expect("failed to load drivers");
|
||||
println!(" Channels: {:?}", driver.get_channels());
|
||||
println!(" Sample rate: {:?}", driver.get_sample_rate());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue