docs: recording pipeline no longer buffers in memory (#176 item 3) #473
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/176-recording-pipeline-drift"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Item 3 of #176. Docs only.
Both
CLAUDE.mdfiles still described pre-#82 behaviour —PerUserPCMSink"accumulates … per user in memory", and "captures each Discord user's audio into a separate 48 kHz stereo PCM buffer for the session".Capture has streamed straight to disk since #82. That is not a cosmetic inaccuracy: the entire reason a crashed session is now recoverable (#399) is that the audio was already on disk when the bot died. A reader trusting these docs would conclude the opposite, and would not understand why the recovery path can exist.
Corrected while here:
.s16lein theaudio_temproot, not WAVs in a session directory. Changed in #321, because a gap-filled 6-hour capture is 4.15 GB and overflows WAV's 4 GB RIFF size field..recording.jsonmanifest, the.handed-offmarker, and deleting each raw track once it converts.bot/CLAUDE.md. It was in the rootCLAUDE.mdand inPerUserPCMSink's docstring but not here — and it is the property that makes tracks mutually aligned without a mixing step, and makes #399's recovery possible at all.The
PerUserPCMSinkmodule docstring, which #176 also lists as drifted, was already accurate — that part had been fixed since the issue was filed.#176's other two items are addressed separately: item 2 (crash-resume salvage) is already done by #399, and item 1 (in-flight downsample) carries a data-corruption hazard on upgrade that needs its own issue. Both written up on #176.
🤖 Generated with Claude Code