Fix issue #461
This commit is contained in:
parent
ecbb026e2b
commit
104f04c9a1
|
@ -545,7 +545,7 @@ impl SupportedStreamConfigRange {
|
||||||
assert!(self.min_sample_rate <= sample_rate && sample_rate <= self.max_sample_rate);
|
assert!(self.min_sample_rate <= sample_rate && sample_rate <= self.max_sample_rate);
|
||||||
SupportedStreamConfig {
|
SupportedStreamConfig {
|
||||||
channels: self.channels,
|
channels: self.channels,
|
||||||
sample_rate: self.max_sample_rate,
|
sample_rate,
|
||||||
sample_format: self.sample_format,
|
sample_format: self.sample_format,
|
||||||
buffer_size: self.buffer_size,
|
buffer_size: self.buffer_size,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue