summaryrefslogtreecommitdiffstats
path: root/drivers/wasapi
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2023-06-08 19:46:05 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2023-08-17 14:45:17 +0200
commit6f1152bdbe1338998b41c51c5a39dc6dac28ae31 (patch)
tree10ae7ca78b0da733070802d1108f28ca3c2c21d4 /drivers/wasapi
parent281b7b9fdf033f391e6a2c2b1d777e61737ccb16 (diff)
downloadredot-engine-6f1152bdbe1338998b41c51c5a39dc6dac28ae31.tar.gz
Add a `--audio-output-latency` command-line argument
This allows optimizing the audio output latency on higher-end CPUs, especially in projects that do not expose a way to override this setting.
Diffstat (limited to 'drivers/wasapi')
-rw-r--r--drivers/wasapi/audio_driver_wasapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/wasapi/audio_driver_wasapi.cpp b/drivers/wasapi/audio_driver_wasapi.cpp
index 6c84aee2b7..e39373e7a0 100644
--- a/drivers/wasapi/audio_driver_wasapi.cpp
+++ b/drivers/wasapi/audio_driver_wasapi.cpp
@@ -555,7 +555,7 @@ Error AudioDriverWASAPI::finish_input_device() {
Error AudioDriverWASAPI::init() {
mix_rate = _get_configured_mix_rate();
- target_latency_ms = GLOBAL_GET("audio/driver/output_latency");
+ target_latency_ms = Engine::get_singleton()->get_audio_output_latency();
Error err = init_output_device();
if (err != OK) {