mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[3.x] Fix Dummy audio driver initialization issue on WASAPI output device initialization failure
(cherry picked from commit 61b1e2e83f)
This commit is contained in:
parent
a7b30a2b85
commit
3c50662d33
1 changed files with 3 additions and 5 deletions
|
|
@ -399,13 +399,11 @@ Error AudioDriverWASAPI::finish_capture_device() {
|
||||||
Error AudioDriverWASAPI::init() {
|
Error AudioDriverWASAPI::init() {
|
||||||
mix_rate = GLOBAL_GET("audio/mix_rate");
|
mix_rate = GLOBAL_GET("audio/mix_rate");
|
||||||
|
|
||||||
Error err = init_render_device();
|
|
||||||
if (err != OK) {
|
|
||||||
ERR_PRINT("WASAPI: init_render_device error");
|
|
||||||
}
|
|
||||||
|
|
||||||
exit_thread.clear();
|
exit_thread.clear();
|
||||||
|
|
||||||
|
Error err = init_render_device();
|
||||||
|
ERR_FAIL_COND_V_MSG(err != OK, err, "WASAPI: init_render_device error.");
|
||||||
|
|
||||||
thread.start(thread_func, this);
|
thread.start(thread_func, this);
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue