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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
audio output failing in windows when default_input_config() function called on output device
Divyam Chandel8430291de029
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rsindex 10ed28aa7..bc62226cd 100644--- a/screenpipe-audio/src/core.rs+++ b/screenpipe-audio/src/core.rs@@ -172,11 +172,12 @@ async fn get_device_and_config(}.ok_or_else(|| anyhow!("Audio device not found"))?;- let mut config = audio_device.default_input_config()?;// if output device and windows, using output config- if cfg!(target_os = "windows") && is_output_device {- config = audio_device.default_output_config()?;- }+ let config = if is_output_device && cfg!(target_os = "windows") {+ audio_device.default_output_config()?+ } else {+ audio_device.default_input_config()?+ };Ok((audio_device, config))}