diff options
author | Eoin O'Neill <eoinoneill1991@gmail.com> | 2022-12-09 22:39:14 -0800 |
---|---|---|
committer | Eoin <eoinoneill1991@gmail.com> | 2023-04-25 23:52:50 -0700 |
commit | 5a08091168782a924cd3a23baf31c5cd4cd63906 (patch) | |
tree | 7d1d31bc0222a848ce6869a15138f8976c6c6f5d /drivers/wasapi | |
parent | 5860b02b63943bd5c75c14244cb6b92fd4382ccc (diff) | |
download | redot-engine-5a08091168782a924cd3a23baf31c5cd4cd63906.tar.gz |
Fix crash caused by invalid mix_rate assignment due to bogus
project settings.
We'll default to a sensible value in the case that a user has
somehow managed to modify the configuration file incorrectly.
Closes 69819
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 72ec0c19ab..ab4d9ddd95 100644 --- a/drivers/wasapi/audio_driver_wasapi.cpp +++ b/drivers/wasapi/audio_driver_wasapi.cpp @@ -547,7 +547,7 @@ Error AudioDriverWASAPI::finish_input_device() { } Error AudioDriverWASAPI::init() { - mix_rate = GLOBAL_GET("audio/driver/mix_rate"); + mix_rate = _get_configured_mix_rate(); target_latency_ms = GLOBAL_GET("audio/driver/output_latency"); |