summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main.cc b/src/main.cc
index 4c44a78..59001fb 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -160,13 +160,9 @@ int main(int argc, char** argv) {
}
#endif /* !defined(STRIP_ALL) */
- // PRE-FILL: Fill ring buffer with initial 200ms before starting audio device
- // This prevents underrun on first callback
- g_audio_engine.update(g_music_time, 1.0f / 60.0f);
- audio_render_ahead(g_music_time,
- 1.0f / 60.0f); // Fill buffer with lookahead
+ // Pre-fill using same pattern as main loop (100ms)
+ fill_audio_buffer(0.1f, 0.0);
- // Start audio (or render to WAV file)
audio_start();
g_last_audio_time = audio_get_playback_time(); // Initialize after start