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.
This commit is contained in:
Pedro López-Cabanillas 2021-07-02 17:09:44 +02:00 committed by GitHub
parent bfca737a7c
commit 7ff164d8ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{