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));
|
||||
let config = configs
|
||||
.into_iter()
|
||||
.next()
|
||||
.last()
|
||||
.expect(EXPECT)
|
||||
.with_sample_rate(DEFAULT_SAMPLE_RATE);
|
||||
Ok(config)
|
||||
|
|
Loading…
Reference in New Issue