From 7ff164d8ab58799567fdd2e42612e64669f2598b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20L=C3=B3pez-Cabanillas?= Date: Fri, 2 Jul 2021 17:09:44 +0200 Subject: [PATCH] wasapi: increase initialization timeout to 2 seconds, same as shutdown timeout (#929) The 2 seconds timeout was chosen for consistency, but the reason to increase the initialization timeout is that one of my test devices (Asus T101HA, Windows 10) fails to initialize the wasapi driver with a timeout error most of the times. --- src/drivers/fluid_wasapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/fluid_wasapi.c b/src/drivers/fluid_wasapi.c index e3826f11..fc285eee 100644 --- a/src/drivers/fluid_wasapi.c +++ b/src/drivers/fluid_wasapi.c @@ -261,7 +261,7 @@ fluid_audio_driver_t *new_fluid_wasapi_audio_driver2(fluid_settings_t *settings, /* start event must be first */ wait_handles[0] = dev->start_ev; wait_handles[1] = dev->thread; - ret = WaitForMultipleObjects(FLUID_N_ELEMENTS(wait_handles), wait_handles, FALSE, 1000); + ret = WaitForMultipleObjects(FLUID_N_ELEMENTS(wait_handles), wait_handles, FALSE, 2000); switch(ret) {