Record buffered field extraction tradeoff

This commit is contained in:
Meta Vens 2026-05-22 01:26:28 +01:00
commit 55b306dc39
4 changed files with 19 additions and 0 deletions

View file

@ -30,6 +30,9 @@ flowchart TD
- Loopback/program audio is timing evidence where available.
- Distributed inputs must be aligned and resampled before they become program
stems.
- The five-second runtime window is allowed to be spent on alignment,
resampling, separation, and spatial-field extraction. Low latency loses to a
coherent volumetric sound field here.
- Probe signals are budgeted telemetry, not a permanent audio bed.
- Faust/native DSP owns the hot separation and spatialization graph.

View file

@ -10,6 +10,9 @@ machine must be direct-driver and native-buffer first:
- `src/Mimir.Runtime` owns stream descriptors, source polling, direct push
ingest, one rolling buffer per configured audio/video stream, and the
synchronization hub Aquarium can inspect.
- The default five-second window is an intentional latency/memory trade: use it
to line up streams and extract the volumetric audio/video field before OBS
sees program output.
- `native/reservoir` owns the lower native rolling-buffer invariant for
Aquarium/Faust integration.
- PowerShell/FFmpeg/SRT remains a bridge utility for LAN OBS feeds. It is not

View file

@ -10,6 +10,11 @@ operator UI.
The default reservoir horizon is five seconds. That delay is not decoration. It
is the budget that lets late network packets, independent capture clocks,
audio/video alignment, and debug controls converge before OBS sees the result.
Mimir is explicitly trading latency and memory for throughput and extraction
quality: the app may spend that buffered window lining streams up and crunching
audio/video data to recover as much of the volumetric sound field as possible.
Do not optimize the window away unless a replacement invariant preserves that
alignment and field-reconstruction budget.
## Current Mechanism
@ -42,6 +47,9 @@ flowchart TD
## Invariants
- One in-memory reservoir owns the live timing edge and expiry.
- The five-second rolling window is a deliberate compute budget, not accidental
latency. It exists so capture, sync, GPU fusion, and audio field extraction
can choose coherence over immediacy.
- Aquarium owns the running app, UI, debug state, settings changes, output
management, GPU fusion/rendering, and Spout/video publication.
- Faust/native DSP owns audio alignment, voice separation, suppression, stems,

View file

@ -32,12 +32,17 @@ constraints:
memory.
- Networked feeds are producers into the live runtime, not independent clock
authorities.
- Mimir explicitly trades latency and memory for throughput and field quality:
the default five-second buffer is compute budget for stream alignment,
GPU/audio analysis, and volumetric sound-field extraction.
invariants:
- OBS composition authority stays in OBS.
- FFmpeg owns capture, encoding, and transport only for bridge utilities.
- One stable bridge port equals one OBS source endpoint.
- One rolling live window owns the timing edge and expiry.
- The rolling window is not accidental latency. It must preserve enough time
to line up feeds and crunch data before OBS-facing output is emitted.
- Typed views may index the rolling buffer, but no per-kind ring owns
retention.
- Aquarium owns production UI, GPU fusion, D3D12 interop, and Spout2 output.