diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2023-06-08 19:46:05 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2023-08-17 14:45:17 +0200 |
commit | 6f1152bdbe1338998b41c51c5a39dc6dac28ae31 (patch) | |
tree | 10ae7ca78b0da733070802d1108f28ca3c2c21d4 /drivers/wasapi | |
parent | 281b7b9fdf033f391e6a2c2b1d777e61737ccb16 (diff) | |
download | redot-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.cpp | 2 |
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) { |