diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 15:44:30 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 15:44:30 +0100 |
| commit | 0bb7fa35cc340a65c944e546231632379bcfa30c (patch) | |
| tree | 23913b4d5d26686b45acee5648b147a44877e3a0 /src/audio/audio.h | |
| parent | 72c0cbcb38732b698d33d52459fed67af56ee2ec (diff) | |
feat: Add --seek command line option for fast-forward debugging
This feature allows developers to jump to a specific time in the demo sequence (e.g., './demo64k --seek 10.5'). It simulates the game logic, audio state (rendering silent buffers), and visual physics (compute shaders) from t=0 up to the target time before starting real-time playback. Audio initialization is refactored to separate device init and start.
Diffstat (limited to 'src/audio/audio.h')
| -rw-r--r-- | src/audio/audio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/audio.h b/src/audio/audio.h index dd43d97..67c83c2 100644 --- a/src/audio/audio.h +++ b/src/audio/audio.h @@ -5,5 +5,7 @@ #pragma once void audio_init(); +void audio_start(); // Starts the audio device callback +void audio_render_silent(float duration_sec); // Fast-forwards audio state void audio_update(); void audio_shutdown(); |
