webaudio: Fix default_output_config()
This commit is contained in:
parent
3d2fddc13e
commit
8789312826
|
@ -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…
Reference in New Issue