Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Use clamp for output latency hint calculation
Richie McIlroy11daa7919d97
diff --git a/crates/audio/src/latency.rs b/crates/audio/src/latency.rsindex 899d88e66..c948e57e5 100644--- a/crates/audio/src/latency.rs+++ b/crates/audio/src/latency.rs@@ -440,8 +440,7 @@ pub fn default_output_latency_hint(#[cfg(not(target_os = "macos"))]{let fallback = (buffer_size_frames as f64 / sample_rate as f64)- .max(FALLBACK_WIRED_LATENCY_SECS)- .min(MAX_LATENCY_SECS);+ .clamp(FALLBACK_WIRED_LATENCY_SECS, MAX_LATENCY_SECS);Some(OutputLatencyHint::new(fallback,OutputTransportKind::Unknown,