From 8cababb75f17c420518cc5e84b66f48a1a1b82d3 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 15 Feb 2026 12:38:48 +0100 Subject: investigating audio-drive bug --- src/tests/audio/test_jittered_audio.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/tests/audio/test_jittered_audio.cc') diff --git a/src/tests/audio/test_jittered_audio.cc b/src/tests/audio/test_jittered_audio.cc index d8260ec..d7c6a7d 100644 --- a/src/tests/audio/test_jittered_audio.cc +++ b/src/tests/audio/test_jittered_audio.cc @@ -42,11 +42,10 @@ void test_jittered_audio_basic() { float music_time = 0.0f; for (float t = 0.0f; t < total_time; t += dt) { - music_time += dt; // Normal tempo - // Update tracker and fill buffer tracker_update(music_time, dt); audio_render_ahead(music_time, dt); + music_time += dt; // Sleep minimal time to let audio thread run std::this_thread::sleep_for(std::chrono::milliseconds(1)); @@ -114,7 +113,7 @@ void test_jittered_audio_with_acceleration() { // Update tracker and fill buffer tracker_update(music_time, dt * tempo_scale); - audio_render_ahead(music_time, dt); + (void)audio_render_ahead(music_time, dt); // Sleep minimal time to let audio thread run std::this_thread::sleep_for(std::chrono::milliseconds(1)); -- cgit v1.2.3