Refactor Host and related traits into a new traits module
This is a draft implementation of #294. I'll leave this open for feedback and potentially better trait naming suggestions or better solutions in general! cc @ishitatsuyuki
This commit is contained in:
parent
36dee482bd
commit
5e4f384992
12 changed files with 225 additions and 219 deletions
|
|
@ -1,7 +1,7 @@
|
|||
extern crate cpal;
|
||||
extern crate failure;
|
||||
|
||||
use cpal::{Device, Host};
|
||||
use cpal::traits::{DeviceTrait, HostTrait};
|
||||
|
||||
fn main() -> Result<(), failure::Error> {
|
||||
println!("Supported hosts:\n {:?}", cpal::ALL_HOSTS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue