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:
commit
aa0740389a
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue