From 3a3eca975f15d1e025d6c46c6de253d2abaa7170 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 15 Feb 2026 16:41:08 +0100 Subject: fix(audio): WAV dump drift improvements, acceptable state WAV dump changes: - Bypass ring buffer, render directly with synth_render() - Frame accumulator eliminates truncation errors - Skip pre-fill and fix seek for WAV dump mode - Result: No glitches, -150ms drift at 64b (acceptable) Timeline editor: - Fix waveform tooltip position calculation - Increase beat bar visibility (0.5 opacity) Cleanup: - Remove all drift debugging code from audio.cc and tracker.cc Status: Acceptable for now, further investigation needed. Co-Authored-By: Claude Sonnet 4.5 --- tools/timeline_editor/timeline-playback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/timeline_editor/timeline-playback.js') diff --git a/tools/timeline_editor/timeline-playback.js b/tools/timeline_editor/timeline-playback.js index 8c84877..a1c50ab 100644 --- a/tools/timeline_editor/timeline-playback.js +++ b/tools/timeline_editor/timeline-playback.js @@ -168,7 +168,7 @@ export class PlaybackController { ctx.stroke(); // Beat markers - ctx.strokeStyle = 'rgba(255, 255, 255, 0.15)'; + ctx.strokeStyle = 'rgba(255, 255, 255, 0.50)'; ctx.lineWidth = 1; for (let beat = 0; beat <= maxTimeBeats; beat++) { const x = beat * this.state.pixelsPerBeat; -- cgit v1.2.3