summaryrefslogtreecommitdiffstats
path: root/drivers/wasapi
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-04-26 11:35:37 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-04-26 11:35:37 +0200
commitb58873b98a9860c4629514586a55048e8af81f32 (patch)
treec116cb4876b75c1c5c579c441989bb339c0125c4 /drivers/wasapi
parente0e93ce094d19d132f34aa5c92e892524a8125c9 (diff)
parent5a08091168782a924cd3a23baf31c5cd4cd63906 (diff)
downloadredot-engine-b58873b98a9860c4629514586a55048e8af81f32.tar.gz
Merge pull request #69833 from Eoin-ONeill-Yokai/audio_invalid_mixrate
Fix crash caused by invalid mix_rate assignment due to bogus project settings.
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 805528b8c7..7d11293f9b 100644
--- a/drivers/wasapi/audio_driver_wasapi.cpp
+++ b/drivers/wasapi/audio_driver_wasapi.cpp
@@ -545,7 +545,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");