From 8bee7577cba9f55be8bc404038d5df959595b989 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 28 Mar 2026 18:45:42 +0100 Subject: fix(audio): fix early timing drift in tracker, use ola_decode_frame in synth - Replaced chunk_frames truncation accumulation with accurate double-precision integration in audio_render_ahead. - Updated tracker to use double-precision time representations for exact sample-accurate scheduling. - Extracted ola_decode_frame to handle per-frame OLA-IDCT synthesis in synth.cc. - Updated TODO.md for completed audio tasks. handoff(Claude): Audio timing drift and OLA-IDCT enhancement resolved. --- src/audio/audio_engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audio/audio_engine.h') diff --git a/src/audio/audio_engine.h b/src/audio/audio_engine.h index cc4c80a..c6fe4db 100644 --- a/src/audio/audio_engine.h +++ b/src/audio/audio_engine.h @@ -21,7 +21,7 @@ class AudioEngine { const AssetId* sample_assets, uint32_t sample_count); // Update loop - void update(float music_time, float dt); + void update(double music_time, double dt); #if !defined(STRIP_ALL) // Timeline seeking (debugging only) -- cgit v1.2.3