wasm backends: Fix default_output_config behaviour

This commit is contained in:
Rob Watson 2020-09-10 15:50:35 +02:00
parent 3d2fddc13e
commit b5b6014edf
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,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)