Fix experimental audio volume being significantly too low (#38062)

The rodio channelcount convertor halves the volume. This addresses that
in most cases by using the default channelcount for the system
microphone which is usually 2.

A proper fix will follow later as part of the de-noising PR

Release Notes:

- N/A
This commit is contained in:
David Kleingeld
2025-09-12 13:56:48 +00:00
committed by GitHub
parent 2a03b6b80c
commit 687c2c88c7
+1 -1
View File
@@ -161,7 +161,7 @@ impl Audio {
.default_device()?
.default_config()?
.prefer_sample_rates([SAMPLE_RATE, SAMPLE_RATE.saturating_mul(nz!(2))])
.prefer_channel_counts([nz!(1), nz!(2)])
// .prefer_channel_counts([nz!(1), nz!(2)])
.prefer_buffer_sizes(512..)
.open_stream()?;
info!("Opened microphone: {:?}", stream.config());