Bound runtime sync analysis

This commit is contained in:
Meta Vens 2026-05-22 14:16:50 +01:00
commit 200186d4d5
8 changed files with 112 additions and 37 deletions

View file

@ -71,16 +71,19 @@ accepted_design:
timing atoms, symbol/event decoding, and per-band response kernels. Symbol
identity is carried by start band, glide shape, duration, and following
inter-chirp gap. Any three consecutive correctly detected symbols identify a
timeline event within the current operating horizon. `MimirAudioSynchronizationAnalyzer` now treats
`loopback-scarlett-speakers` as timing authority, uses coarse chirplet
energy for acquisition, and refines delay from matched timeline event
indices when symbol decoding succeeds. Positive delay means the
timeline event within the current operating horizon. `MimirAudioSynchronizationAnalyzer`
now treats `loopback-scarlett-speakers` as timing authority, uses coarse
chirplet energy for acquisition, and refines delay from matched timeline
event indices when symbol decoding succeeds. Positive delay means the
candidate mic is late relative to loopback. Reports include rounded delay,
fractional delay, confidence, and per-band matched energy. `MimirAudioSynchronizationStateTracker`
fractional delay, confidence, and per-band matched energy. `MimirSynchronizationHub`
caches the latest per-source reports and `MimirAudioSynchronizationStateTracker`
owns the smoothed per-source belief: latest delay, smoothed delay,
confidence, per-band response evidence, and delay-slope/SRO estimate in
ppm. `MimirRuntime` now runs this analysis online on a fixed cadence and
`MIMIR_SYNC_TELEMETRY_SECONDS` prints live buffer/report/state telemetry.
ppm. `MimirRuntime` now runs this analysis online as a bounded rotating
service on a fixed cadence, while UI and telemetry read cached reports/states
instead of invoking analysis. `MIMIR_SYNC_TELEMETRY_SECONDS` prints live
buffer/report/state telemetry.
`MimirSynchronizationHub.BuildAlignedAudioFrame` exposes the first
provisional loopback-referenced aligned mono frame for channels that clear
the confidence gate.
@ -182,11 +185,12 @@ current_status:
next_action: >
Harden the online state filter before adding the synchronization actuator.
Current app testing proves Aquarium WASAPI output wakes Scarlett speaker
loopback, live mic buffers stay populated, runtime sync analysis runs on
cadence, and the continuous chirplet timeline can produce confident sync
states in the app. Delay estimates are still jumpy, so the actuator needs
outlier rejection and better SRO smoothing before it drives variable-rate
resampling and fractional-delay correction per non-reference stream. Replace
loopback, live mic buffers stay populated, runtime sync analysis now runs as
a bounded rotating service without UI/telemetry re-entry, and the continuous
chirplet timeline can produce confident sync states in the app. Delay
estimates are still jumpy, so the actuator needs outlier rejection and better
SRO smoothing before it drives variable-rate resampling and fractional-delay
correction per non-reference stream. Replace
the diagnostic JSON-line process bridge with direct native capture drivers that push buffer handles into
Mimir.Runtime. Mimir.BufferSmoke still proves loopback-referenced aligned
audio for Scarlett loopback, Focusrite mic, Kiyo mic, and Kiyo Pro mic when