diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-28 18:45:42 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-28 20:14:59 +0100 |
| commit | 8bee7577cba9f55be8bc404038d5df959595b989 (patch) | |
| tree | 4a228f02a3345d9e1275b9e0949d2fb5d6d1864a /src/audio/audio_engine.cc | |
| parent | 37df61d1a0dbd5e253f9db778c17c4187e453b8d (diff) | |
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.
Diffstat (limited to 'src/audio/audio_engine.cc')
| -rw-r--r-- | src/audio/audio_engine.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/audio_engine.cc b/src/audio/audio_engine.cc index 8e47eac..b4c4863 100644 --- a/src/audio/audio_engine.cc +++ b/src/audio/audio_engine.cc @@ -81,8 +81,8 @@ void AudioEngine::load_music_data(const TrackerScore* score, #endif } -void AudioEngine::update(float music_time, float dt) { - current_time_ = music_time; +void AudioEngine::update(double music_time, double dt) { + current_time_ = (float)music_time; // Pre-warm samples needed in next 2 seconds (lazy loading strategy) // TODO: Implement pre-warming based on upcoming pattern triggers |
