summaryrefslogtreecommitdiff
path: root/src/app/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/main.cc')
-rw-r--r--src/app/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/main.cc b/src/app/main.cc
index 90e3015..03434a0 100644
--- a/src/app/main.cc
+++ b/src/app/main.cc
@@ -198,8 +198,8 @@ int main(int argc, char** argv) {
}
#endif /* !defined(STRIP_ALL) */
- // Pre-fill using same pattern as main loop (100ms)
- fill_audio_buffer(0.1f, 0.0);
+ // Pre-fill ring buffer to target lookahead (prevents startup delay)
+ fill_audio_buffer(audio_get_required_prefill_time(), 0.0);
audio_start();
g_last_audio_time = audio_get_playback_time(); // Initialize after start