diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-07 15:07:01 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-07 15:07:01 +0100 |
| commit | a0dd0a27c4d6831fb2fb5ad81283f36512ef16ef (patch) | |
| tree | bc961189b10cf9f983d39854b9a5770d87574427 /TODO.md | |
| parent | a6a7bf0440dbabdc6c994c0fb21a8ac31c27be07 (diff) | |
update doc, optimize spectral_editor
Diffstat (limited to 'TODO.md')
| -rw-r--r-- | TODO.md | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -2,6 +2,25 @@ This file tracks prioritized tasks with detailed attack plans. +## Recently Completed (February 7, 2026) + +- [x] **Audio Peak Measurement & Test Coverage Improvements** (February 7, 2026) + - [x] **Real-Time Peak Fix**: Fixed critical audio-visual sync bug where visual effects triggered ~400ms before audio was heard + - Root cause: Peak measured at ring buffer write time (synth_render) instead of playback time (audio callback) + - Solution: Added `get_realtime_peak()` to AudioBackend interface, implemented in MiniaudioBackend audio_callback + - Used exponential averaging: instant attack, 0.7 decay rate (1-second fade time) + - [x] **Peak Decay Optimization**: Fixed "test_demo just flashing" issue + - Old: 0.95 decay = 5.76 second fade (screen stayed white) + - New: 0.7 decay = 1.15 second fade (proper flash with smooth decay) + - [x] **SilentBackend Creation**: Test-only backend for audio.cc testing without hardware + - Created src/audio/backend/silent_backend.{h,cc} + - 7 comprehensive tests: lifecycle, peak control, tracking, playback time, buffer management + - Significantly improved audio.cc test coverage + - [x] **Backend Reorganization**: Moved all backends to src/audio/backend/ subdirectory + - Cleaner code organization, updated all includes and CMake paths + - [x] **Dead Code Removal**: Removed unused `register_spec_asset()` function + - **Result**: All 28 tests passing, perfect audio-visual sync, improved test coverage + ## Recently Completed (February 6, 2026) - [x] **Critical Shader Bug Fixes & Test Infrastructure** (February 6, 2026) |
