diff --git a/drivers/wasapi/audio_driver_wasapi.cpp b/drivers/wasapi/audio_driver_wasapi.cpp index 668202221..d31c0ea5e 100644 --- a/drivers/wasapi/audio_driver_wasapi.cpp +++ b/drivers/wasapi/audio_driver_wasapi.cpp @@ -400,13 +400,11 @@ Error AudioDriverWASAPI::finish_capture_device() { Error AudioDriverWASAPI::init() { 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(); + Error err = init_render_device(); + ERR_FAIL_COND_V_MSG(err != OK, err, "WASAPI: init_render_device error."); + thread.start(thread_func, this); return OK;