diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-08 11:13:53 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-08 11:13:53 +0100 |
| commit | 392d03c0c05f24be3210a04d9a50cd9714d1e265 (patch) | |
| tree | 3c4985879bdf614536020f2061c299ecf442677f /src/tests/test_jittered_audio.cc | |
| parent | d2d20763ac61f59187d261bb7d6dedcab525bc54 (diff) | |
refactor(audio): Finalize audio sync, update docs, and clean up test artifacts
- Implemented sample-accurate audio-visual synchronization by using the hardware audio clock as the master time source.
- Ensured tracker updates and visual rendering are slaved to the stable audio clock.
- Corrected to accept and use delta time for sample-accurate event scheduling.
- Updated all relevant tests (, , , , ) to use the new delta time parameter.
- Added function.
- Marked Task #71 as completed in .
- Updated to reflect the audio system's current status.
- Created a handoff document: .
- Removed temporary peak log files (, ).
Diffstat (limited to 'src/tests/test_jittered_audio.cc')
| -rw-r--r-- | src/tests/test_jittered_audio.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_jittered_audio.cc b/src/tests/test_jittered_audio.cc index 8afb8c0..cad0da4 100644 --- a/src/tests/test_jittered_audio.cc +++ b/src/tests/test_jittered_audio.cc @@ -45,7 +45,7 @@ void test_jittered_audio_basic() { music_time += dt; // Normal tempo // Update tracker and fill buffer - tracker_update(music_time); + tracker_update(music_time, dt); audio_render_ahead(music_time, dt); // Sleep to simulate frame time @@ -113,7 +113,7 @@ void test_jittered_audio_with_acceleration() { music_time += dt * tempo_scale; // Update tracker and fill buffer - tracker_update(music_time); + tracker_update(music_time, dt * tempo_scale); audio_render_ahead(music_time, dt); // Sleep to simulate frame time |
