From 909979df6672e7162202f84a7f167e809ab517e3 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Wed, 16 Oct 2024 10:17:01 -0700 Subject: [PATCH] Fix incorrect timings --- backends/playback/zsm/zsm_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/playback/zsm/zsm_backend.cpp b/backends/playback/zsm/zsm_backend.cpp index 33c5c21..394ac77 100644 --- a/backends/playback/zsm/zsm_backend.cpp +++ b/backends/playback/zsm/zsm_backend.cpp @@ -210,7 +210,7 @@ void ZsmBackend::tick(bool step) { size_t nextCpuClocksInt = std::floor(nextCpuClocks); size_t prevCpuClocksInt = std::floor(prevCpuClocks); size_t cpuClocksIntDelta = nextCpuClocksInt - prevCpuClocksInt; - audio_step(cpuClocksIntDelta); + audio_step(ticks_remaining); cpuClocks = std::fmod(nextCpuClocks, ClocksPerTick); } size_t ZsmBackend::render(void *buf, size_t maxlen) {