Add native ASIO runtime source

This commit is contained in:
Meta Vens 2026-05-23 21:44:36 +01:00
commit fad7eb63b7
20 changed files with 925 additions and 134 deletions

View file

@ -116,8 +116,9 @@ usable bands, expected-symbol versus observed-bin confusion observations,
timing residuals, delay hypotheses, phase summaries, and an adaptive codebook
plan. The analyzer keeps raw profiles even when no timing report is accepted,
and the active decoder can consume a persisted model for learned response
weighting, first-order group-delay correction, and global delay-hypothesis
seeding. Runtime chirp-bin emission consumes the same model's emission plan, so
weighting, phase-coherence weighting, first-order group-delay correction, and
joint global delay/bin-shift hypotheses. Runtime chirp-bin emission consumes the
same model's emission plan, so
the emitted timeline can use the measured reliable symbol set at a higher
de Bruijn order instead of continuing to spend code on dead bins. Reports/states
expose `delayUs` next to fractional sample delay.
@ -163,14 +164,15 @@ The ASIO probe can now play raw mono Float32 timeline audio through the
Focusrite outputs while capturing every ASIO input as raw interleaved Float32.
`Mimir.BufferSmoke --analyze-asio-f32` feeds those captured channels into the
same runtime active analyzer. `--calibrate-chirp-bin-asio-f32` computes and
persists the response/confusion/delay model, and `--analyze-asio-f32
--calibration ...` loads it into the active decoder. The ASIO worker also
supports `--emit-json-blocks`, so Focusrite ASIO callbacks can feed
sample-bearing `audio-block` events into `Mimir.Runtime` continuously through
the existing frame-event adapter while the native ABI cut is pending. The
minimal `config/mimir-runtime.asio.example.json` proof ingested 13,324
sample-bearing 192 kHz blocks across `asio-ch0` through `asio-ch3` in two
seconds, all from the same ASIO callback stream. A real
persists the response/confusion/delay model per output/mic path, and
`--analyze-asio-f32 --calibration ...` loads it into the active decoder.
`native/asio_capture` and `MimirAsioStreamSource` are now the runtime Scarlett
path: Focusrite ASIO callbacks feed sample-bearing 192 kHz Float32 blocks into
`Mimir.Runtime` in process, without the diagnostic JSON/stdout bridge. The
minimal `config/mimir-runtime.asio.example.json` proof ingested more than
12,000 sample-bearing 192 kHz blocks across `asio-ch0` through `asio-ch3` in
two seconds and retained 2,048 blocks per channel, all from the same ASIO
callback stream. A real
192 kHz chirp-bin Scarlett artifact decoded
`Loopback 1 -> Loopback 2` at exactly `0.000 us` with 12 matched anchors and
0.999 confidence. The same analyzer now prints calibration profiles for

View file

@ -92,9 +92,10 @@ Get-Content .\state\evidence.jsonl -Tail 8
Each classified chirp carries the full dechirped bin-energy surface; sync
reports expose those bands, and `MimirChirpBinCalibrationModel` preserves
measured usable bands, response/confusion observations, timing residuals,
delay hypotheses, phase summaries, and adaptive codebook plans. The active
decoder can load the model for learned weighting, first-order group-delay
correction, and global delay-hypothesis seeds. Runtime chirp-bin emission
delay hypotheses, phase summaries, and adaptive codebook plans per
output/mic path. The active decoder can load the model for learned weighting,
phase-coherence weighting, first-order group-delay correction, and joint
global delay/bin-shift hypotheses. Runtime chirp-bin emission
loads the same model's emission plan, so a physical calibration can shrink the
emitted alphabet and raise sequence order instead of continuing to use dead
bins.
@ -129,20 +130,21 @@ Get-Content .\state\evidence.jsonl -Tail 8
`--calibrate-chirp-bin-asio-f32` now persists a real response/confusion/delay
model and `--analyze-asio-f32 --calibration ...` consumes it. In the stored
artifact, physical input 1 produced two reliable symbols and a different
strongest-bin profile while failing pairwise timing. The ASIO native worker
also supports `--emit-json-blocks` so `Mimir.Runtime` can ingest Focusrite ASIO
callbacks continuously through the frame-event adapter. The minimal
`config/mimir-runtime.asio.example.json` proof ingested 13,324 sample-bearing
192 kHz blocks across `asio-ch0` through `asio-ch3` in two seconds. Acoustic robustness is
still open, but failed timing now leaves response evidence.
strongest-bin profile while failing pairwise timing. `native/asio_capture`
plus `MimirAsioStreamSource` now load Focusrite ASIO in process and feed
sample-bearing 192 kHz Float32 blocks directly into runtime buffers. The
minimal `config/mimir-runtime.asio.example.json` proof ingests more than
12,000 blocks across `asio-ch0` through `asio-ch3` in two seconds and retains
2,048 blocks per channel. Acoustic robustness is still open, but failed
timing now leaves response evidence.
- Raven also has a 192 kHz loopback-capable Scarlett for co-streamer/game timing
evidence. Do not move the heavy soundfield or sensor-fusion workload there.
## Immediate Re-entry Instruction
Use the chirp-bin calibration models from real microphones to tune the active
codebook/bands/weighting, then replace the ASIO JSON-block process bridge with
a native ABI callback source and turn decoded clock fits into the
SRO/fractional-delay actuator. Keep loopback as timing authority. Do not call
synchronization analysis from UI/telemetry readouts. Do not restore deleted
script infrastructure because a stale doc once missed it.
codebook/bands/weighting, then turn decoded clock fits into the
SRO/fractional-delay actuator. Keep loopback as timing authority and keep
Scarlett capture on the in-process ASIO source. Do not call synchronization
analysis from UI/telemetry readouts. Do not restore deleted script
infrastructure because a stale doc once missed it.