caelestia-niri/docs/PROGRESS.md
Jacob Ward 23f245bee2 S001: the visualiser follows the sound again
pw-record writes an AU file (big-endian) to a pipe; the tap read it as
little-endian, so cava saw noise. Record with --raw and passive, as
AudioCollector.cpp. The beat tracker turns on and off without restarting
the tap. Covered screens let the visualiser fade before they stop
painting. Children inherited across Restart Shell's exec, pw-play sounds
and tap recorders are reaped. Per-chunk work is testable
(sine_lifts_its_own_bar).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 07:49:58 -06:00

1.6 KiB

Progress

One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.

S001 — Visualiser follows the sound (2026-11-13)

  • Cause: pw-record - writes an AU file (big-endian) to a pipe; we read little-endian, so cava saw noise. Fix: --raw, plus node.passive like the original. Beat (§1.3) was fed the same noise; fixed with it, and toggling the beat no longer restarts the tap.
  • Covered screens now let the visualiser fade (autoHide) before their background stops painting; before, the last bars froze in the gaps.
  • Zombies: Restart Shell's exec orphaned the old image's children (proved in nested niri: pw-record, pactl, swayidle Z); services::reap_inherited reaps them. pw-play sounds reaped (live shell had 470 Z). Tap child reaped on any exit (Rec).
  • Test: audio::tests::sine_lifts_its_own_bar (peak at the tone's bar, bars change), records_raw_samples.
  • Verified in nested niri: grim crops differ with a tone, match in silence; 6 forced tap restarts + Restart Shell leave no Z; dashboard toggles keep one tap. Only snapshot/nested-tested, not live.
  • Live checks for the batched restart: bars follow a browser video and system sounds on both monitors; dashboard Media ring moves; after Restart Shell, ps -o stat=,comm= --ppid $(pgrep -x caelestia-shell) shows no Z.
  • Not done: the live shell still holds 470 pw-play and 166 caelestia zombies until restart.
  • Later: caelestia (166) and wpctl zombies come from spawn(...) calls in wl.rs that never wait; old-image pactl subscribe etc. still run after an exec restart until they exit (S002 area).

Later