| Summary: | SDL_Init with SDL_INIT_JOYSTICK hangs for 10 seconds when playing audio from another application | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Jake Breen <haekbreen> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.10 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
| Attachments: | Tested modified hid_blacklist function | ||
|
Description
Jake Breen
2020-03-01 06:59:13 UTC
What is the USB VID/PID of the device? We can add it to the blacklist so we skip it during enumeration. According to device manager it's: Vid = 041E PID = 3249 Cheers, Jake I may have fixed it in this commit: https://hg.libsdl.org/SDL/rev/3e9f11265172 Can you try with the latest snapshot? http://www.libsdl.org/tmp/SDL-2.0.zip Created attachment 4232 [details]
Tested modified hid_blacklist function
Unfortunately it doesn't.
I have tracked it down to a call on
hid_device_info() -> HidD_GetManufacturerString (Line 499 in src\hidapi\windows\hid.c)
I've added the vid/pid to hid_blacklist and it works great.
I'm a little clueless when it comes to patches, so I've cut out the function into a file and attached it. (Included the file, and line number in the comments)
Fixed, thanks! https://hg.libsdl.org/SDL/rev/88068887c25d Can you double check that this hasn't regressed in the latest SDL snapshot? http://www.libsdl.org/tmp/SDL-2.0.zip Thanks! Seems to work fine! Thanks! Great, thanks! |