From d06ad4075714fa81cc966162e5aa6f757e42a271 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Wed, 1 Jul 2020 13:19:58 +0200 Subject: [PATCH] Add default 50ms output_latency web override. Hopefully a good tradeoff between latency and performance on most browsers. --- servers/audio_server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index c0aa0424787..c4f1a95ce4a 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -184,6 +184,7 @@ void AudioDriverManager::initialize(int p_driver) { GLOBAL_DEF_RST("audio/enable_audio_input", false); GLOBAL_DEF_RST("audio/mix_rate", DEFAULT_MIX_RATE); GLOBAL_DEF_RST("audio/output_latency", DEFAULT_OUTPUT_LATENCY); + GLOBAL_DEF_RST("audio/output_latency.web", 50); // Safer default output_latency for web. int failed_driver = -1;