Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
test(verify): do not time A/V sync on markers inside a transition
Richie McIlroybcb07d4f737b
diff --git a/crates/verify/src/audio_model.rs b/crates/verify/src/audio_model.rsindex 87947b633..5ac4f95a5 100644--- a/crates/verify/src/audio_model.rs+++ b/crates/verify/src/audio_model.rs@@ -245,6 +245,10 @@ pub struct ExpectedMarker {/// Whether the marker's payload survives processing. Studio Sound can/// smear the FSK bits; such a marker is matched by its chirp time.pub payload: bool,+ /// Whether the marker sounds inside a clip transition, where the video+ /// is a blend of two frames and has no single frame to time it against.+ #[serde(default)]+ pub blended: bool,}/// An output window in which detections of `source` are not judged.@@ -479,6 +483,7 @@ impl AudioModel {rate: if retimed { segment.timescale } else { 1.0 },recording: Some((segment.clip, recording_time)),payload: !processed,+ blended,});}}@@ -541,6 +546,7 @@ impl AudioModel {rate: 1.0,recording: None,payload: true,+ blended: false,});}}diff --git a/crates/verify/tests/audio_support/mod.rs b/crates/verify/tests/audio_support/mod.rsindex 8a7d3fd4e..7722780bc 100644--- a/crates/verify/tests/audio_support/mod.rs+++ b/crates/verify/tests/audio_support/mod.rs@@ -362,7 +362,7 @@ pub fn check_av(for (expected, heard) in &report.pairs {// Partial markers and markers inside a transition (a video blend)// have no single source frame to compare with.- if expected.presence != audio_model::Presence::Required {+ if expected.presence != audio_model::Presence::Required || expected.blended {continue;}let Some((clip, recording_time)) = expected.recording else {