Update feedback.rs

This commit is contained in:
Mohanson 2019-06-19 10:34:12 +08:00 committed by GitHub
parent e6f61b3a82
commit 6ceb3a215f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ fn main() {
println!("Using default output device: \"{}\"", output_device.name()); println!("Using default output device: \"{}\"", output_device.name());
// We'll try and use the same format between streams to keep it simple // We'll try and use the same format between streams to keep it simple
let mut format = input_device.default_output_format().expect("Failed to get default format"); let mut format = input_device.default_input_format().expect("Failed to get default format");
format.data_type = cpal::SampleFormat::F32; format.data_type = cpal::SampleFormat::F32;
// Build streams. // Build streams.