SDL/src/joystick/hidapi
Sam Lantinga 3b3ae4d14d Possible fix for bug 5010 - SDL_Init with SDL_INIT_JOYSTICK hangs for 10 seconds when playing audio from another application
Jake Breen

When I run SDL_INIT with SDL_INIT_JOYSTICK it stalls for about 10 seconds (last report was 10,615ms), but only if I'm currently playing audio. (Like in Spotify for example.)

querying something related to device access (last dll loaded)
'BabbysFirst64.exe' (Win32): Loaded 'C:\Windows\SysWOW64\deviceaccess.dll'.

I use a USB DAC because my mobo's audio out is pretty not great. And I've noticed unplugging it seems to solve the issue. I haven't noticed any other issues that are caused by my DAC.

My DAC is the Sound BlasterX G1 https://us.creative.com/p/gaming-headsets/sound-blasterx-g1
Vid = 041E
PID = 3249

My system specs:
- Windows 10 Pro
- Ryzen 2700x
- 16GB Ram
- Nvidia 2070 RTX

Additional USB devices plugged in:
- Valve Index
- Xbox One Elite Controller
2020-03-02 15:06:47 -08:00
..
steam Added missing file from previous commit 2020-01-29 20:09:59 -08:00
SDL_hidapi_gamecube.c Fixed long delay on main thread caused by blocking rumble writes in HIDAPI drivers 2020-02-04 15:26:56 -08:00
SDL_hidapi_ps4.c Fixed long delay on main thread caused by blocking rumble writes in HIDAPI drivers 2020-02-04 15:26:56 -08:00
SDL_hidapi_rumble.c Update for bug 4923 - Calling SDL_GameControllerRumble() often takes 8 ms 2020-02-07 11:02:34 -08:00
SDL_hidapi_rumble.h Update for bug 4923 - Calling SDL_GameControllerRumble() often takes 8 ms 2020-02-07 11:02:34 -08:00
SDL_hidapi_steam.c Use SDL math functions in Steam Controller support 2020-03-02 09:35:09 -08:00
SDL_hidapi_switch.c Fixed trying to handle the HORI Wireless Switch Pad when connected via USB 2020-02-27 13:53:32 -08:00
SDL_hidapi_xbox360.c This controller firmware is supported on Windows, and is covered by the Bluetooth check on Mac OSX 2020-03-02 10:57:57 -08:00
SDL_hidapi_xbox360w.c Fixed support for third party Xbox 360 wireless controller dongle 2020-02-19 08:26:00 -08:00
SDL_hidapi_xboxone.c Updated the HIDAPI Xbox One driver with support for Bluetooth Xbox One controllers 2020-03-02 09:26:12 -08:00
SDL_hidapijoystick.c Possible fix for bug 5010 - SDL_Init with SDL_INIT_JOYSTICK hangs for 10 seconds when playing audio from another application 2020-03-02 15:06:47 -08:00
SDL_hidapijoystick_c.h Fixed long delay on main thread caused by blocking rumble writes in HIDAPI drivers 2020-02-04 15:26:56 -08:00