Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

style(audio): cargo fmt stream.rs after v0.3.329 WASAPI fallback

Louis Beaumont9129f63a77b6
diff --git a/crates/screenpipe-audio/src/core/stream.rs b/crates/screenpipe-audio/src/core/stream.rs
index 91c66924a..9dbf6b26b 100644
--- a/crates/screenpipe-audio/src/core/stream.rs
+++ b/crates/screenpipe-audio/src/core/stream.rs
@@ -242,7 +242,13 @@ impl AudioStream {
is_disconnected.clone(),
stream_control_tx.clone(),
);
- let stream = match build_input_stream(&device, &config, channels, tx.clone(), primary_cb) {
+ let stream = match build_input_stream(
+ &device,
+ &config,
+ channels,
+ tx.clone(),
+ primary_cb,
+ ) {
Ok(s) => Some(s),
Err(primary_err) if is_wasapi_unsupported_format(&primary_err) => {
warn!(
@@ -258,7 +264,13 @@ impl AudioStream {
is_disconnected,
stream_control_tx,
);
- match build_input_stream(&device, &fallback, fb_channels, tx, fallback_cb) {
+ match build_input_stream(
+ &device,
+ &fallback,
+ fb_channels,
+ tx,
+ fallback_cb,
+ ) {
Ok(s) => Some(s),
Err(fallback_err) => {
error!(