Add default 50ms output_latency web override.

Hopefully a good tradeoff between latency and performance on most
browsers.
This commit is contained in:
Fabio Alessandrelli 2020-07-01 13:19:58 +02:00
parent 7a5e10b8a9
commit a9b7dd25df
1 changed files with 1 additions and 0 deletions

View File

@ -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;