FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
docs: volume grab kind for ui.timeline.hit, clip_audio_ui tests (#223)
Oskard6e43bcf2c79
diff --git a/docs/control-protocol.md b/docs/control-protocol.mdindex 7bca6de06..e17bf4649 100644--- a/docs/control-protocol.md+++ b/docs/control-protocol.md@@ -35,7 +35,7 @@ Methods (handlers in `crates/ui-egui/src/control.rs`):| `ui.drag` | `{from, to, steps, modifiers}` | press–move–release || `ui.scroll` | `{id|x,y, dx, dy, modifiers}` | wheel / trackpad || `ui.key` / `ui.type` | `{key}` (`Cmd+K`, `Space`…; off macOS `Ctrl+K` is the same key) / `{text}` | keyboard |-| `ui.timeline.hit` / `ui.timeline.locate` | `{x,y,modifiers?}` / `{clip, edge?}` | timeline hit-testing. `hit` reports a clip's `edge` (`In`/`Out`) within 7 px of it (a third of a narrow clip); just left of a cut that is the left clip's Out, from the cut rightwards the right clip's In. `kind` is the trim a press of the current tool with `modifiers` starts there (`trim`, `ripple`, `roll`, `rateStretch`, `remix`), or null |+| `ui.timeline.hit` / `ui.timeline.locate` | `{x,y,modifiers?}` / `{clip, edge?}` | timeline hit-testing. `hit` reports a clip's `edge` (`In`/`Out`) within 7 px of it (a third of a narrow clip); just left of a cut that is the left clip's Out, from the cut rightwards the right clip's In. `kind` is the trim a press of the current tool with `modifiers` starts there (`trim`, `ripple`, `roll`, `rateStretch`, `remix`), `volume` on an audio clip's Volume line (Selection and Pen tools), or null || `ui.playback` | `{action: play|stop|toggle, speed?}` | || `ui.screenshot` | `{path?, panel?}` | PNG of the window or one panel; fails after 10 s when no frame is presented (window hidden, display asleep) || `ui.resize`, `ui.focus`, `app.quit` | | `ui.focus` is the only request that activates the app and takes keyboard focus |diff --git a/docs/testing.md b/docs/testing.mdindex 1b64781ce..432564296 100644--- a/docs/testing.md+++ b/docs/testing.md@@ -194,6 +194,10 @@ window (for example on a locked screen, where `ui.screenshot` cannot capture).`crates/ui-egui/tests/essential_sound_ui.rs` does the same for the Essential Sound panel (type buttons,switches, a slider drag as one undo step, section bypass, Auto-Match, ducking, Browse presets;`essential-sound-*.png`).+`crates/ui-egui/tests/clip_audio_ui.rs` covers the audio of video clips (#223): the linked audio's+Volume, Channel Volume and Panner in Effect Controls and Properties, and the Volume line on audio+clips in the Timeline (a drag is one undo step, Pen-tool keyframes, keyframe drags, a click or+right-click on the line still reaches the clip; `FILMCRAFT_UI_SHOTS=<dir>` writes `volume-*.png`).Essential Sound engine tests (`crates/engine/src/essential_sound_tests.rs`) build projects fromgenerated speech-like and tonal WAVs: Auto-Match lands within ±0.5 LU of the target (measured: 0.000 LU,