diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-09-13 03:06:34 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-09-15 11:56:21 +0200 |
commit | d187bb4e11182ee3edbc0008dba5762148bc530d (patch) | |
tree | d0d3b7b75610599bce87d35e40012605cce11fdf /servers | |
parent | f2c44949c07e5ec2aadf519fca98e5bb1517f74c (diff) |
[HTML5] Use browser mix rate by default on the Web.
Browsers doesn't really like forcing the mix rate, e.g. Firefox does not
allow input (microphone) if the mix rate is not the default one, Chrom*
will exhibit worse performances, etc.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/audio_server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index 758ce766c3..ac1569c15d 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -196,6 +196,7 @@ int AudioDriverManager::get_driver_count() { void AudioDriverManager::initialize(int p_driver) { GLOBAL_DEF_RST("audio/driver/enable_input", false); GLOBAL_DEF_RST("audio/driver/mix_rate", DEFAULT_MIX_RATE); + GLOBAL_DEF_RST("audio/driver/mix_rate.web", 0); // Safer default output_latency for web (use browser default). GLOBAL_DEF_RST("audio/driver/output_latency", DEFAULT_OUTPUT_LATENCY); GLOBAL_DEF_RST("audio/driver/output_latency.web", 50); // Safer default output_latency for web. |