Commits
Commits on
dff7d843f3d0fedec086d9c2e7e2b68304835ed52026-08-10
✨ feat(engine): every audio stream is listed, and any one of them opensAhmet Kaan Gümüş · dff7d84
✨ feat(engine): every audio stream is listed, and any one of them opens A remux carries one audio track per language; the engine took whichever AAC track a HashMap handed it first and there was no way to ask for another. - probe_streams() describes every audio track in file order, undecodable ones included (decodable: false) so a picker can grey them rather than hide them - open_multi_streams() takes (path, stream) per source; the old open_multi_segments is a wrapper pinning stream 0, so no caller moved - stream ids come from moov.traks, not the tracks HashMap: "stream 0" was a different track run to run on a multi-track file - a named stream that is missing or not AAC is an Err; stream 0 stays the silent source it always was, because a file we cannot decode the audio of still has a picture worth editing - assets/test_multiaudio.mp4: video + AAC stereo + AAC mono (fra) + AC-3, which covers the picking, the language and the greyed row
🐛 fix(engine): a refused project load cannot hang on its own decoderAhmet Kaan Gümüş · 771cd4a
🐛 fix(engine): a refused project load cannot hang on its own decoder `open_project` starts decoding source 0 before it validates anything, so by the time a later source is refused that worker has filled the two-frame channel and parked in `send`. The receiver and the worker were two locals, and locals drop in reverse order of declaration: the worker joined a decode thread that only the receiver beside it could ever wake. The app froze on a bad project file instead of showing the error. The two are one value now. `FrameStream` holds the receiver first and the worker second, and Rust drops fields in declaration order, so the disconnect always precedes the join -- in an early return, on an unwind, and in call sites not written yet. Nothing on the seek path changes: `start_span` still installs the new receiver and parks the old worker in the retire list without ever joining. The device moves below the validation for the same reason. Its feeder thread outlives the `Audio` value and only a session's `drop` retires it, so a refusal above that line left a PipeWire stream and a thread behind for a project that never opened. Tests: dropping a stream whose frames nobody took returns instead of hanging (10 s bound; hangs if the two fields are swapped), and the refusal path itself with enough sources that the park is certain -- 60 s hang before the fix, 0.04 s after.
✨ feat(library): media panel with tint swatches, drag-to-timelineAhmet Kaan Gümüş · 5bc0cf5
✨ feat(library): media panel with tint swatches, drag-to-timeline A column beside the picture lists every source the timeline knows: name, duration and the tint its clips wear, which is what ties a row to the boxes below. A click picks a row, the button under the list drops that source in at the playhead, and a row dragged onto either lane goes through the same call, so there is one answer to what adding does. Import moves into the list it adds to. Peaks now decode on a background thread with a bed drawn meanwhile, so a long file no longer stops the window painting on its first repaint. The window finally tells the compositor its name and its app id.
✨ feat(timeline): two lanes, waveforms, group-scoped selectionAhmet Kaan Gümüş · 591afa3
✨ feat(timeline): two lanes, waveforms, group-scoped selection V1 and A1 get a fixed header column and a bed of their own, both offset by the same constants the ruler now is, so one x maps to one moment in all three rows. Clips are placed at their own start rather than queued edge to edge: a lift leaves a hole and the bare bed showing through it is how a gap looks. Audio clips paint their source's min/max envelope, cached per file and normalised to its own loudest sample -- the fixtures peak near an eighth of full scale and would otherwise draw as a flat line. A click marks the whole group and acts on the half it landed on, which is what makes a detached half separately deletable. Two actions the lane model owed a key: Regroup rejoins what a Cut split, Lift removes one half and leaves the gap. Both auto-list in the keybindings overlay and are rebindable like the rest. `PlaybackSession::lane_clips` is the one engine addition: link ids and source ranges are what a two-lane front-end draws with, and no existing accessor carries either.
🔇 test(engine): the lane and gap tests go through the muted open() tooAhmet Kaan Gümüş · 0f5e259
🔇 test(engine): the lane and gap tests go through the muted open() too Resolves the merge of e1d090d by hand where git resolved it textually: the two sessions this branch added opened the device at full gain, and the audio one plays 2.4 s of a real file. Both go through the silent helper now. Neither loses anything by it -- what they asserts is the clock, the frame numbering and the picture, none of which the last multiply before the device can change; the silence of a gap is proved off the decoder in audio_segments, with no device at all. The leading-gap copy assertion moves with the priming packet: a hole at the head is its own length plus the one packet a reader drops.
🐛 fix(engine): group ids only where the lanes agree, priming for a leading gapAhmet Kaan Gümüş · 07cd3d3
🐛 fix(engine): group ids only where the lanes agree, priming for a leading gap Two states the verifier panel reached that saved but would not load again. `split` and `regroup` handed one fresh id to whichever clip each lane had at that frame, but the lanes are edited apart: the clip being cut may start or end somewhere else in the other lane, and a group id whose two clips disagree about their span is not one take. Each side of the cut now asks the question separately, so the halves that do line up stay one take and the ones that do not get ids of their own. The exported audio of a timeline that opens on a hole played every sound after the hole 23 ms early: a reader drops the first packet of an AAC track as priming, and with no packet to spare that drop came out of the hole. The gap at the head now carries one extra silent packet, which owes the rounding debt nothing. Tests: both panel repros, a seeded random-op sweep that reloads the project after every edit, and the leading-gap onset measured off the exported file (44032 of an expected 44100; 43008 without the packet).
🔇 test(audio): silence the suites that reach the speakerAhmet Kaan Gümüş · 522149d
🔇 test(audio): silence the suites that reach the speaker `cargo test` played real files out of the real device: measured 0.37 of full scale on the sink monitor, 818k nonzero samples, for as long as the playback suite ran. That is somebody's desk, every run. Both suites now open through a helper that sets the gain to zero. Nothing else changes: the stream is still connected and scheduled, the samples are still decoded, written and handed over, and every assertion here is measured from the device's own position, which the gain does not touch. The one test that walks through audible gains does it on a flushed ring, where there is nothing but the underrun fill to apply them to. Measured after: peak 0, not one nonzero sample, all three suites green.
✅ test(engine): the crafted overflow line at the open_project doorAhmet Kaan Gümüş · 85c5140Browse files
✨ feat(engine): real silent AAC for export gaps, link + overflow guardsAhmet Kaan Gümüş · 301e29b
✨ feat(engine): real silent AAC for export gaps, link + overflow guards Grafts the losing candidate's hand-written AAC-LC silence into the offset-placed lanes: a gap in the audio lane is copied as max_sfb=0 access units (4 bytes mono, 7 stereo, verified against our own decoder) instead of being spent as stts duration on the packet in front of it. That retires the 23 ms leading-gap misplacement, so every packet is one 1024-frame sample table entry again and the muxer takes no duration. from_parts becomes the release-active untrusted door it claims to be: per-cause errors, an end-overflow bound, and the grouping rules -- a link id names at most one clip per lane, and a pair covers one span. The parser bounds the same overflow by line number, `place` strips the incoming group id, and the two lane surgeries (`clear`, `open_room`) drop the id from what they cut, which is where duplicates came from.
🔊 feat(audio): volume and mute for the monitoring outputAhmet Kaan Gümüş · bb07bdc
🔊 feat(audio): volume and mute for the monitoring output One knob down the stack: `ao_set_volume(handle, gain)` scales the samples in the RT callback, and mute is a gain of 0.0. Not the stream's PipeWire volume control -- WirePlumber persists every Props change into its restore state (measured on this box: the bucket gains `mute:true` ~2 s later), so a mute keypress would have become "edith has no sound" in tomorrow's system mixer, which is the bug 9ab4ebd just finished removing. Volume and mute stay independent: turning the level down while muted must not be what makes sound come out. The button says both at once. Mute is not pause -- the frames are still consumed, so the device clock, and with it the picture, runs straight through. The keybindings card's row list now scrolls inside a cap, which is the upgrade path its own ponytail named: three more actions no longer fit a 360 px window, and now no number of them can stop fitting.
✨ feat(engine): video+audio lanes with offset-placed clips, gaps, .edith v2Ahmet Kaan Gümüş · 59eb78e
✨ feat(engine): video+audio lanes with offset-placed clips, gaps, .edith v2 Project gains two lanes; a Clip now carries `start` (its timeline placement) and `link` (group id), so a gap is simply the absence of a placement rather than an object anyone has to keep in sync. Moves and trims become arithmetic on start/in_frame; the lane invariant (sorted, non-overlapping) is checked in from_parts, at the .edith parser, and asserted after every mutation. split cuts every lane and hands the two sides fresh group ids; regroup is its exact inverse. delete still ripples both lanes (the app keeps its behaviour), lift removes one placement and leaves a hole, place is the per-lane overwrite that can make one. A video gap plays as black frames from a worker that opens no file -- same channel, backpressure, cancel and retire path as a decoder -- and exports as encoded black. An audio gap is synthesised zero chunks, real ones, so the master clock keeps counting through it; on the export side it is spent as stts duration on the packet beside it, since there is no AAC encoder to make silence with. .edith v2 writes one line per placement per lane; v1 files still load, as fully-grouped gapless lanes, and save as v2.
✨ feat(export): options card before the export startsAhmet Kaan Gümüş · 935d5f0
✨ feat(export): options card before the export starts Export no longer writes the moment it is asked: the action and the button open a card first. Quality rows (Auto/Low/Medium/High/Custom Mbps) map to engine ExportSettings and go out through export_to_with; the destination comes from the desktop save dialog, and with no chooser installed the default path beside the source still stands. Codec, container and moov placement are stated rather than offered -- they are what edith can write. One card at a time: opening either the keys overlay or this one closes the other. Escape closes the card; a running export's escape is untouched.
2026-08-09
✨ feat(app): empty start, and opening is not playingAhmet Kaan Gümüş · c5f4646
✨ feat(app): empty start, and opening is not playing With no argument the window opens empty at 720p instead of exiting: it says what it is waiting for, the whole window is already the drop target, and the first media import or .edith load becomes the timeline. Player .session is an Option and every action that needs one refuses in the notice slot or dims its button rather than acting on nothing. The first-render play() is gone with it, so a file arrives paused on its first frame -- a project on its saved playhead -- and the play binding is what starts it.
🐛 fix(audio): drop MEDIA_ROLE, escape shared WirePlumber mute bucketAhmet Kaan Gümüş · 3daab1a
🐛 fix(audio): drop MEDIA_ROLE, escape shared WirePlumber mute bucket media.role=Movie keyed edith's volume/mute restore to the shared Output/Audio:media.role:Movie bucket — muted once by any video app, edith inherits Mute:yes on every launch. Private media.name bucket starts unmuted at 100% and still persists per-app volume.
✨ feat(export): ExportSettings for bitrate and software-encoder pinAhmet Kaan Gümüş · 2c9c3a2Browse files
✨ feat(waveform): min/max peak extraction off the audio decode pathAhmet Kaan Gümüş · 57bd150Browse files
🐛 fix(keys): overlay title overlap, one row per actionAhmet Kaan Gümüş · d598c98
🐛 fix(keys): overlay title overlap, one row per action Title sat in a fixed-height slot; wrapped text painted over the first row. Title and status line are now auto-height flex_none children, rows use min_h. Rows merged to one per action showing the full chord set; a rebind replaces all of the action's chords (multi-chord stays possible via the config file). Rows grew to the 24px hit minimum. In-card notice moved to the status line under the title.
✨ feat(keys): rebindable keybindings, single source of truthAhmet Kaan Gümüş · cad8d5a
✨ feat(keys): rebindable keybindings, single source of truth Every shortcut lived in hardcoded match arms and tooltip strings. New keymap module owns all bindings: dispatch, tooltips, hint line and the Keys overlay all derive from it. Click a row, press a key to rebind; conflicts rejected naming the holder. Persists to XDG_CONFIG_HOME/edith/keybindings (strict line format, atomic write, malformed file falls back to defaults with a notice). Escape stays hardcoded as the way out of capture, overlay and export — a rebindable exit could lock the user out.
✨ feat(ui): visible file controls, labeled buttons, persistent noticesAhmet Kaan Gümüş · a981d4a
✨ feat(ui): visible file controls, labeled buttons, persistent notices Import existed only as drag-drop and export only as the bare e key; every control was an unlabeled glyph. Toolbar gains text-labeled Import/Export/Save grouped transport | edit | file, tooltips with shortcuts on every control, hover and disabled states, a dismissible full-width notice bar replacing the 2s truncated slot, 24px hit targets (WCAG 2.5.8), scissors cut glyph distinct from pause, and window title edith.
⚡ perf(playback): retire cancelled workers off the seek pathAhmet Kaan Gümüş · 3adbaf7
⚡ perf(playback): retire cancelled workers off the seek path Joining the outgoing decode worker inline made a seek pay whatever VA-API init that worker was still inside -- 98.4 ms worst case against 1.6 ms before the join landed, i.e. a scrub capped at ~10 seeks/s with a visible hitch per step. Cancelled workers now go into a retire list instead. Every seek sweeps it, dropping only the ones whose thread has already returned (`is_finished`, never a wait), and the session's drop joins whatever is left along with the running worker -- so the exit guarantee is untouched: no decode worker outlives its session, and none can be inside libva when Mesa's atexit handlers run. Worst seek back to 4.7-6.1 ms over three drill runs. Open+drop stays at ~13.5 ms, which is the same join as before and a session drops rarely. Retire list peaked at 16 under a back-to-back 20-seek loop -- a UI scrub leaves far more time between steps.
🎨 style: rustfmt drift in playback testsAhmet Kaan Gümüş · 4c831c1
🎨 style: rustfmt drift in playback tests Formatting only -- no test changed, `cargo fmt --check -p engine` is clean again.
🐛 fix(decode): join workers on drop — Mesa atexit race killed exiting processesAhmet Kaan Gümüş · 9276137
🐛 fix(decode): join workers on drop — Mesa atexit race killed exiting processes A decode worker was spawned detached and nothing ever waited for it, so a process could exit while a worker sat inside `vaInitialize`. Mesa frees its process name from an `atexit` handler and the worker then reads it back NULL: SIGSEGV at exit, 9 runs in 20 of the saveload suite. `DecodeSession::open_worker` now hands the caller a `Worker` that owns the `JoinHandle`; dropping or replacing one cancels and joins. `PlaybackSession` holds one, so a seek, a clip boundary and the session's own drop all wait for the worker they abandon. The worker also checks the cancel flag before and after opening the hardware session, so a cancelled one never enters VA-API init at all. Public `open`/`open_at`/`open_range` are unchanged.
🐛 fix: relocatable relative-launch saves, fsync before renameAhmet Kaan Gümüş · 9fa0211
🐛 fix: relocatable relative-launch saves, fsync before rename A project path with a non-canonical parent -- a bare filename from `cd dir && edith clip.mp4`, or a directory reached through a symlink -- never matched the canonical source prefix, so every source line came out absolute and the folder could not be moved. The save also published the rename without an fsync, which a power loss can turn into a short file under the real name.
✨ feat(app): ctrl+s save, .edith load via drop and argvAhmet Kaan Gümüş · 85ac45b
✨ feat(app): ctrl+s save, .edith load via drop and argv Ctrl+s writes the timeline to the project it was loaded from, or to a new one beside the media it started as. A dropped .edith replaces the whole session -- built first, swapped only on success, so a refusal leaves what is playing alone -- and argv takes one in place of a media file, resuming at its saved playhead.
✨ feat(engine): .veproj save/load — relocatable, validated, atomicAhmet Kaan Gümüş · ac60b80
✨ feat(engine): .veproj save/load — relocatable, validated, atomic A project file is line-based text: `veproj 1`, an optional playhead, one `source` line per file and one `clip` line per range. Text because a path is bytes on this platform and a JSON string could not carry one losslessly, so the path field is byte-escaped instead; paths under the project's own directory are written relative to it, which makes a folder of media plus its .veproj movable anywhere. The parser is strict and every refusal names its 1-based line, and writing goes through .part + rename as an export does. Loading is a new session, never a mutation of the old one: source 0 defines the timeline, every other source passes the same checks import applies (in the same words), and every clip has to still fit inside the file it plays from -- a source that vanished or shrank is a refusal that names it, not a silently shorter timeline. Sources no clip plays from are pruned at save, so an import that was undone cannot leave a file behind that blocks a future load.
🧪 test(playback): commit paste-while-playing and paste-at-EOS coverageAhmet Kaan Gümüş · a178b73Browse files
🧪 test(playback): commit import-during-play and undo-after-import coverageAhmet Kaan Gümüş · 37f2bfeBrowse files
✨ feat(app): multi-file import — drag-drop, argv, per-source tintsAhmet Kaan Gümüş · 80f10f5Browse files
✨ feat(engine): multi-source traversal, import validation, cross-source exportAhmet Kaan Gümüş · 68b0ca2
✨ feat(engine): multi-source traversal, import validation, cross-source export Wave 2 of the import slice, two packages merged at one seam. Playback traversal (S3): next_clip/seek open each clip against project.sources()[clip.source]; audio switches to open_multi_segments over the (source, start, end) triples segments_from now yields. New PlaybackSession::import validates dimensions, fps and audio params against the timeline before appending, and reseeks unconditionally so a running audio worker learns the appended tail. clip_spans_by_source() added for the app's per-source tint. Cross-source export (S4): export::start drops its source path argument -- Project::sources() is the only path truth now -- and is pub so a test can build a multi-source Project without a session. Each clip opens its own ClipDecoder; the audio pass carries one bresenham accumulator across source joins. Seam: PlaybackSession::path is gone. It was kept only to feed export_to, which no longer takes a path, so the field and its initialiser go with it.
✨ feat(engine): multi-source model + segmented multi-file audioAhmet Kaan Gümüş · 5593a9f
✨ feat(engine): multi-source model + segmented multi-file audio Wave 1 of the import slice: the timeline model and the audio backend both learn about several source files. Nothing user-visible yet — every clip is still source 0 until playback/export traversal lands. S1 — project.rs model + mechanical call-site fixes: - Clip gains `source: usize` (Clip stays Copy, so clipboard/undo semantics are untouched); Project gains an append-only `sources: Vec<PathBuf>`. - Import splits in two: `import(path) -> usize` is dedup-only and pushes no history, `append_clip(source_idx, frame_count) -> bool` pushes the one snapshot — an import stays exactly one undo step, and append_clip refuses an unknown index. - Dedup key is fs::canonicalize with a raw-path fallback, so Project stays pure data and an unreadable path still gets an index. - cut/paste carry the source through `..self.clips[idx]` struct-update. - `segments_from` now yields (source, start, end) triples; playback.rs and export.rs strip the index and keep feeding the single-source audio fns. S2 — audio.rs Track/probe/bit-exact joins: - New private `Track` resolves one source once (reader, copied stts, own priming, params, sample_count). - `open_multi_segments` / `copy_multi_segments` take the source triples; `open_segments` / `copy_segments` are now one-source wrappers, so every existing call site compiles unchanged. - Each source contributes its own priming and length; the timeline sample counter and the bresenham rounding debt both run continuously across a source join, and the extra priming packet stays the first segment's alone. - `AudioSession::probe(path) -> Option<AudioProbe>` exposes the fields import validation needs. - Cross-source decode is bit-exact against single-file open_at on both sides of a join (max abs diff 0e0).
🔧 chore: fixtures for multi-file import (test_av2, test_mismatch)Ahmet Kaan Gümüş · e994c12Browse files
🐛 fix(export): late-cancel window + atomic .part renameAhmet Kaan Gümüş · f973b71
🐛 fix(export): late-cancel window + atomic .part rename Cancel was only checked inside the per-clip frame loop, so an esc during the drain, the audio pass or `finish` completed the export anyway and left a file the user had asked not to have. Cancel is now checked after the loop and again before `finish`. The worker also writes to `<out>.part` and renames it onto the output only on full success, so the output name never points at a half-written file -- and a killed process orphans a `.part` instead of a playable-looking `.export.mp4`.
✨ feat(app): export UI — e to export, esc cancels, ruler as progressAhmet Kaan Gümüş · 9eac4be
✨ feat(app): export UI — e to export, esc cancels, ruler as progress `e` writes the edit list to <source>.export.mp4: playback pauses, the timecode slot becomes `EXPORT n% — esc cancels` and the ruler's accent fill doubles as the progress bar. Edit, scrub, seek and transport input is dead for the duration; the raf gate keeps repainting so progress moves while the clock is stopped. The verdict holds the slot for two seconds. `esc` gives the editor back on the keystroke, but the handle is kept until the worker settles: its last act is to delete the partial file, and a second export started in that window would be what it deleted.
✨ feat(engine): export — edit list to mp4, HW encode with SW fallbackAhmet Kaan Gümüş · 86d5c15
✨ feat(engine): export — edit list to mp4, HW encode with SW fallback Worker thread per export: decodes each clip straight to I420 (never through DecodeSession, which only speaks BGRA), feeds one encoder chosen once -- VA-API plugin unless VE_SW_ENC=1 or the plugin is unavailable, rusty_h264 Fast/CBR otherwise -- and muxes the access units as they come. Audio is copied packet for packet, so the file has to be opened before the first video sample is written. Cancel and every error path delete the partial file; progress is a permille atomic a render loop can read without a lock. mux: the movie timescale moves to 90 kHz. mp4 0.14 converts each sample duration into the movie timescale with its own integer division, so 1 kHz lost 0.33 ms per frame and made a 4.000 s export announce 3.960 s.
✨ feat(engine-hw): vh_enc_* — VA-API H.264 encode with Mesa slice-header fixupAhmet Kaan Gümüş · b75c83e
✨ feat(engine-hw): vh_enc_* — VA-API H.264 encode with Mesa slice-header fixup The plugin grows an encode half beside the decode one: vh_enc_open/vh_enc_frame/vh_enc_drain/vh_enc_close, and engine::hw gains HwEncoder behind a SEPARATE symbol table. That separation is the point -- a libengine_hw.so predating this commit must keep decoding, so the four new symbols must not join the decode Plugin struct where a missing one would take decode down with them. Absent symbols just mean HwEncoder::open returns None and the caller falls back to the rusty_h264 software encoder. Measured on radeonsi (Mesa 26.1.5): 3.98 ms/frame at 1280x720 CBR 4 Mbps including the I420->NV12 upload, against 25.6 ms/frame for rusty_h264 Fast at the same size -- 6.4x. Profile Main, level 4, LowDelay so there are no B-frames and coded order is display order; radeonsi exposes no VAEntrypointEncSliceLP for H.264 so low_power stays off. One reusable DMA-BUF frame carries every picture because BlockingMode::Blocking plus a poll() in each entry point syncs the coded and recon promises before returning. Non-16-aligned sizes allocate aligned surfaces, carry the true size in the SPS crop, and replicate the edge pixel into the padding rather than shipping gbm garbage there. The one ugly part is fix_slice_nal_headers. cros-codecs supplies no VAEncPackedHeaderH264_Slice, and Mesa fills forbidden_zero_bit / nal_ref_idc / nal_unit_type only from a packed slice header, so every slice NAL leaves the encoder with a 0x00 header byte and both ffmpeg and rusty_h264 refuse the stream. Patching that single byte per slice makes both decode it fully. An all-zero header byte is never valid H.264, so the rewrite is a no-op on drivers that write it properly (Intel iHD, which cros-codecs was built against). Marked ponytail; the real fix is a packed slice header in vendor/cros-codecs.
✨ feat(engine): export lane 1 — mux module, AAC packet copyAhmet Kaan Gümüş · 5ce68fe
✨ feat(engine): export lane 1 — mux module, AAC packet copy mux.rs is the write side of demux.rs: split_annex_b/nal_type feed a repack to 4-byte-length-prefixed samples (mp4 0.14 hardcodes length_size_minus_one=3), SPS/PPS/AUD/SEI stripped out of the sample bytes, is_sync taken from an actual NAL type 5 rather than GOP arithmetic. Mp4Muxer::create wants the parameter sets up front, so mux::parameter_sets pulls them out of a buffered first access unit before the muxer exists. Timescales are 90000 video / sample_rate audio / 1000 movie, per-frame duration (90000/fps).round(), and mp4 0.14 ignores Mp4Sample::start_time on write -- timing is duration accumulation only. An SPS shorter than 4 bytes panics inside the crate (avc1.rs indexes sps[1..3]), so create rejects that and the other degenerate shapes up front instead. Audio is copied, not re-encoded: there is no pure-Rust AAC encoder and mp4 0.14 has no PCM MediaConfig, so the only honest option is to hand the source packets back through verbatim. AudioSession::copy_segments does that -- stts walk to packet ids, no decode, bytes straight from read_sample. Cut points do not land on 1024-sample boundaries (23.2 ms packets vs 33.3 ms frames), so a bresenham accumulator picks the packet run per segment and keeps the cumulative A/V offset under 512 samples, proven by induction over the carry and measured over 200 random join lists. The first segment starts one packet early to feed the 1024-sample priming drop; interior segments do not, because an extra head packet there is 23 ms of pre-cut audio at every join and it would not fix the missing MDCT predecessor anyway. That artifact is documented at the seam.
🐛 fix(audio): stop the pause leaking into the playback clockAhmet Kaan Gümüş · bffc034
🐛 fix(audio): stop the pause leaking into the playback clock The graph clock keeps ticking while our stream is inactive, so the first process callback after a resume reported a position a whole pause ahead of what the device had played -- and the master clock jumped by exactly that much. Measured on test_av.mp4: a 300 ms pause moved the timeline +0.32 s, a 1000 ms pause +1.045 s, linear, with the audio itself carrying on from where it stopped. Video then raced to catch a clock the ear could not follow. Fold the inactive stretch into a skew instead of the position, so ao_position keeps meaning "samples actually played" across a pause -- the comparison `played_out` already assumed. This is what tests/playback.rs:88 audio_video_plays_at_real_speed has been red on: a true positive, not a load-sensitive margin. It fails 2/3 at --test-threads=1 as well; whether it lands under the 0.7 s bound was decided by how much the audio clock lagged in the first 2 s (1.79 s -> pass, 1.98 s -> fail), which offsets the constant jump.
✨ feat: copy/paste clips at playheadAhmet Kaan Gümüş · aae5734
✨ feat: copy/paste clips at playhead Project::paste splices a clip in at a timeline position, splitting the clip under it when the position is mid-clip and appending past the end. One history snapshot, so one undo takes a paste back. PlaybackSession::clip_at hands a clip out for copying and paste_at goes through the same edit() reseek as delete/undo. The app keeps an Option<Clip> clipboard on ctrl+c / ctrl+v.
🧹 chore(playback): S6 follow-ups — epsilon frame conversion, drop dead frames()Ahmet Kaan Gümüş · 79c1a91
🧹 chore(playback): S6 follow-ups — epsilon frame conversion, drop dead frames() secs_to_frame with 1e-6 epsilon: bare truncation landed one frame early for boundary seconds (122.999... -> 122); floor semantics kept for mid-frame positions. frames() getter had zero callers since the app moved to try_frame().
✨ feat(app): clips lane — cut/delete/undo, drag-scrubAhmet Kaan Gümüş · 5372bfd
✨ feat(app): clips lane — cut/delete/undo, drag-scrub - clips lane: one box per clip, proportional widths, click-select, ACCENT-tinted selection; plain divs keep spacebar focus - keys c (cut at playhead) / x or delete / z (undo) + drawn buttons; is_held guards all four against auto-repeat editing - drag-scrub on the root div (gpui has no mouse capture — release outside the window is caught by clearing scrub on a moved event with no left button); throttle: seek only on frame change + 100ms, always commit on release - cached duration deleted — timeline_duration() dynamic, so delete shrinks ruler and timecode immediately
✨ feat(playback): edit-list traversal — timeline frames, cut/delete/undoAhmet Kaan Gümüş · 7d2251c
✨ feat(playback): edit-list traversal — timeline frames, cut/delete/undo PlaybackSession owns a Project. try_frame() rewrites every frame index from source to timeline and reopens the next clip's range when a worker ends, so a timeline of clips plays as one contiguous sequence; is_eos() is the real end. seek() maps timeline seconds through the edit list and feeds the audio worker one segment list for the whole rest of the timeline, so clip joins are gapless. cut_at is metadata only, delete_clip/undo reseek onto the new mapping. frames() stays for now: the app switches to try_frame in the UI slice.
✨ feat(engine): clips primitives — edit-list model, bounded decode, segmented audioAhmet Kaan Gümüş · e75a7ba
✨ feat(engine): clips primitives — edit-list model, bounded decode, segmented audio Lane 1 of the clips slice; PlaybackSession traversal comes next. - project.rs: Clip/Project — cut (metadata-only, refuses no-op splits), delete (closes gap, keeps ≥1 clip), undo snapshots, timeline↔source mapping with boundary sweep tests - decode: open_range(start, end) — both backends stop after end-1, empty/inverted ranges disconnect cleanly without spawning a worker - audio: open_segments — one worker walks the edit list; segments bit-exact vs equivalent seeks, joins gapless by contiguity assert, head+tail trim inside a single AAC packet handled
🐛 fix(engine-audio): paused seek ate 1.49s of post-seek audioAhmet Kaan Gümüş · e259516
🐛 fix(engine-audio): paused seek ate 1.49s of post-seek audio S6 verifier finding: ao_flush is consumed only by the next RT callback; while paused there are none, so the new feeder filled the ring behind the pending flag and the first post-resume callback drained the new stream's head (measured 151 underruns = 1.49s = ring capacity, audio then 1.5s ahead of picture). ao_write now refuses samples while a flush is pending (accept() mirrors consume(); feeder's retry loop parks until the RT thread takes the flag). Probe re-run: paused seek 86 underruns = no-drop baseline; mid-play unchanged at 130.
✨ feat(app): click-to-seek ruler, post-EOF restartAhmet Kaan Gümüş · 14821ab
✨ feat(app): click-to-seek ruler, post-EOF restart Ruler takes a left click and seeks to the fraction of its own box that was hit; an invisible overlay canvas records those bounds at prepaint because a mouse listener only ever sees the window position. Player::seek clears the app-side EOF flags (held/eos/done) and raises pending_seek, which keeps the repaint loop alive while paused until the target frame is displayed. Space and the transport button restart from zero once the timeline is finished.