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

chore: should not crash if macos >15.0

Louis Beaumont0a1ad831e396
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rs
index 8a30a6ca1..f52568baf 100644
--- a/screenpipe-audio/src/core.rs
+++ b/screenpipe-audio/src/core.rs
@@ -368,9 +368,7 @@ pub async fn list_audio_devices() -> Result<Vec<AudioDevice>> {
}
}
}
- _ => {
- warn!("Audio output disabled for macOS");
- }
+ _ => {}
}
}
@@ -409,7 +407,11 @@ pub async fn default_output_device() -> Result<AudioDevice> {
}
_ => {}
}
- Err(anyhow!("Audio output disabled for macOS"))
+ let host = cpal::default_host();
+ let device = host
+ .default_output_device()
+ .ok_or_else(|| anyhow!("No default output device found"))?;
+ return Ok(AudioDevice::new(device.name()?, DeviceType::Output));
}
#[cfg(not(target_os = "macos"))]