wasm backends: Fix default_output_config behaviour
This commit is contained in:
parent
3d2fddc13e
commit
b5b6014edf
2 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ impl Device {
|
||||||
configs.sort_by(|a, b| a.cmp_default_heuristics(b));
|
configs.sort_by(|a, b| a.cmp_default_heuristics(b));
|
||||||
let config = configs
|
let config = configs
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.next()
|
.last()
|
||||||
.expect(EXPECT)
|
.expect(EXPECT)
|
||||||
.with_sample_rate(DEFAULT_SAMPLE_RATE);
|
.with_sample_rate(DEFAULT_SAMPLE_RATE);
|
||||||
Ok(config)
|
Ok(config)
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ impl Device {
|
||||||
configs.sort_by(|a, b| a.cmp_default_heuristics(b));
|
configs.sort_by(|a, b| a.cmp_default_heuristics(b));
|
||||||
let config = configs
|
let config = configs
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.next()
|
.last()
|
||||||
.expect(EXPECT)
|
.expect(EXPECT)
|
||||||
.with_sample_rate(DEFAULT_SAMPLE_RATE);
|
.with_sample_rate(DEFAULT_SAMPLE_RATE);
|
||||||
Ok(config)
|
Ok(config)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue