mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-03 09:32:02 +00:00
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:
parent
bfca737a7c
commit
7ff164d8ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue