Ensure all crates are formatted correctly, not just cpal itself.
This commit is contained in:
parent
ca255772fd
commit
7e846b47ad
8 changed files with 2567 additions and 880 deletions
|
|
@ -38,8 +38,12 @@ fn main() {
|
|||
for name in asio.driver_names() {
|
||||
println!("Driver: {:?}", name);
|
||||
let driver = asio.load_driver(&name).expect("failed to load driver");
|
||||
let channels = driver.channels().expect("failed to retrieve channel counts");
|
||||
let sample_rate = driver.sample_rate().expect("failed to retrieve sample rate");
|
||||
let channels = driver
|
||||
.channels()
|
||||
.expect("failed to retrieve channel counts");
|
||||
let sample_rate = driver
|
||||
.sample_rate()
|
||||
.expect("failed to retrieve sample rate");
|
||||
let in_fmt = Format {
|
||||
channels: channels.ins as _,
|
||||
sample_rate: SampleRate(sample_rate as _),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue