summaryrefslogtreecommitdiff
path: root/servers/audio_server.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-05-18 02:31:38 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-05-18 13:02:06 +0200
commit90c7102b51e720d409e1e5597c7942b62e6a6e72 (patch)
treec7a5b5d80897e0a08dcec1d08eb62564ca2a0f21 /servers/audio_server.cpp
parent245c179bd31d65c6b31d156c4f6b08647df0e2fe (diff)
Move mix_rate, ouput_latency to AudioDriverManager
Each driver used to define the (same) project settings values `audio/mix_rate` and `audio/output_latency`, but the setting names are not driver specific. Overriding is still possible via platform tags.
Diffstat (limited to 'servers/audio_server.cpp')
-rw-r--r--servers/audio_server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp
index 7b1ac534b4..09d2914e05 100644
--- a/servers/audio_server.cpp
+++ b/servers/audio_server.cpp
@@ -182,6 +182,9 @@ int AudioDriverManager::get_driver_count() {
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);
+
int failed_driver = -1;
// Check if there is a selected driver