Merge pull request #462 from AlexanderHarrison/master

Fix issue #461
This commit is contained in:
mitchmindtree 2020-08-02 16:54:41 +02:00 committed by GitHub
commit bfffbb5241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}