summaryrefslogtreecommitdiff
path: root/src/3d/renderer_helpers.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-15 14:45:15 +0100
committerskal <pascal.massimino@gmail.com>2026-02-15 14:45:15 +0100
commitb464969cd1f5dd4dceb996ad8410e2695ab477c4 (patch)
treee763d7e782241ec26b8a32eb4ece350421d08ca8 /src/3d/renderer_helpers.h
parent5b0d020241c8268c45ec0e197d60bfcfc2b7966b (diff)
docs: document audio WAV drift bug investigation
Root cause: audio_render_ahead() over-renders by 366ms per 10s, causing progressive timing drift in WAV files. Events appear early in viewer. Findings: - Renders 11,733 extra frames over 40s (331,533 vs 319,800 expected) - Ring buffer accumulates excess audio (~19 frames/iteration) - WAV dump reads exact 533 frames but renders ~552 frames per call - Results in -180ms drift at 60 beats visible in timeline viewer Debug changes: - Added render tracking to audio.cc to measure actual vs expected - Added drift printf to tracker.cc for kick/snare timing analysis - Added WAV sample rate detection to timeline viewer See doc/AUDIO_WAV_DRIFT_BUG.md for complete analysis and proposed fixes. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/3d/renderer_helpers.h')
0 files changed, 0 insertions, 0 deletions