Skip to content

Commit 780e1a5

Browse files
committed
Merge pull request #91141 from kus04e4ek/earbuds-you-had-one-job
Don't ignore `audio/driver/output_latency.web`
2 parents 50a38cd + 1e8eff8 commit 780e1a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2341,10 +2341,13 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
23412341
Engine::get_singleton()->set_max_physics_steps_per_frame(GLOBAL_DEF_BASIC(PropertyInfo(Variant::INT, "physics/common/max_physics_steps_per_frame", PROPERTY_HINT_RANGE, "1,100,1"), 8));
23422342
Engine::get_singleton()->set_physics_jitter_fix(GLOBAL_DEF("physics/common/physics_jitter_fix", 0.5));
23432343
Engine::get_singleton()->set_max_fps(GLOBAL_DEF(PropertyInfo(Variant::INT, "application/run/max_fps", PROPERTY_HINT_RANGE, "0,1000,1"), 0));
2344-
Engine::get_singleton()->set_audio_output_latency(GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "audio/driver/output_latency", PROPERTY_HINT_RANGE, "1,100,1"), 15));
2344+
2345+
GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "audio/driver/output_latency", PROPERTY_HINT_RANGE, "1,100,1"), 15);
23452346
// Use a safer default output_latency for web to avoid audio cracking on low-end devices, especially mobile.
23462347
GLOBAL_DEF_RST("audio/driver/output_latency.web", 50);
23472348

2349+
Engine::get_singleton()->set_audio_output_latency(GLOBAL_GET("audio/driver/output_latency"));
2350+
23482351
GLOBAL_DEF("debug/settings/stdout/print_fps", false);
23492352
GLOBAL_DEF("debug/settings/stdout/print_gpu_profile", false);
23502353
GLOBAL_DEF("debug/settings/stdout/verbose_stdout", false);

0 commit comments

Comments
 (0)