Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

David Kleingeld687c2c88c7ee
diff --git a/crates/audio/src/audio.rs b/crates/audio/src/audio.rs
index 44f2d5e07d5..ab8d85cdaa6 100644
--- a/crates/audio/src/audio.rs
+++ b/crates/audio/src/audio.rs
@@ -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());