Merge pull request #87010 from alessandrofama/wasapi-failed-init

Fix Dummy audio driver initialization issue on WASAPI output device initialization failure
This commit is contained in:
Rémi Verschelde 2024-01-09 17:47:20 +01:00
commit aa0740389a
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -557,13 +557,11 @@ Error AudioDriverWASAPI::init() {
target_latency_ms = Engine::get_singleton()->get_audio_output_latency(); target_latency_ms = Engine::get_singleton()->get_audio_output_latency();
Error err = init_output_device();
if (err != OK) {
ERR_PRINT("WASAPI: init_output_device error");
}
exit_thread.clear(); exit_thread.clear();
Error err = init_output_device();
ERR_FAIL_COND_V_MSG(err != OK, err, "WASAPI: init_output_device error.");
thread.start(thread_func, this); thread.start(thread_func, this);
return OK; return OK;