From 6ceb3a215f54310faecc6769434e26da811f4573 Mon Sep 17 00:00:00 2001 From: Mohanson Date: Wed, 19 Jun 2019 10:34:12 +0800 Subject: [PATCH] Update feedback.rs --- examples/feedback.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/feedback.rs b/examples/feedback.rs index f75b0d2..ba7194e 100644 --- a/examples/feedback.rs +++ b/examples/feedback.rs @@ -20,7 +20,7 @@ fn main() { println!("Using default output device: \"{}\"", output_device.name()); // 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; // Build streams.