From 104f04c9a1fea9288092dc1e88616424362b5b18 Mon Sep 17 00:00:00 2001 From: AlexanderHarrison <48610650+AlexanderHarrison@users.noreply.github.com> Date: Wed, 29 Jul 2020 17:43:17 -0600 Subject: [PATCH] Fix issue #461 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 246e821..06df8ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -545,7 +545,7 @@ impl SupportedStreamConfigRange { assert!(self.min_sample_rate <= sample_rate && sample_rate <= self.max_sample_rate); SupportedStreamConfig { channels: self.channels, - sample_rate: self.max_sample_rate, + sample_rate, sample_format: self.sample_format, buffer_size: self.buffer_size, }