sdl2_frt/src
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
..
atomic Add basic support for compiling on RISC OS 2020-02-13 20:50:47 +00:00
audio Don't call setPreferredOutputNumberOfChannels on iOS, it breaks audio output 2020-02-24 12:07:18 -08:00
core Resolved conflict and added Android_JNI_RequestPermission() 2020-02-13 10:19:05 -08:00
cpuinfo Improved CPU detection on ARM platforms 2020-02-04 16:46:22 +00:00
dynapi Fixed bug 4987 - Can't build on MinGW a recent state (15'th February, 2020): conflicting types 2020-02-27 08:18:20 -08:00
events Fixed build warnings 2020-03-02 09:03:55 -08:00
file Fixed compile warning 2020-02-10 13:59:05 -08:00
filesystem Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
haptic Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
hidapi We already have a hidapi implementation for Windows, we don't need libusb 2020-03-01 17:53:30 -08:00
joystick 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
libm Fixed compiler warning 2020-01-29 20:09:16 -08:00
loadso Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
main Updated version to 2.0.12 for release candidate build 2020-03-01 14:58:16 -08:00
power Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
render Fixed bug 4999 - Palette surface always promoted to alpha (Thanks Cameron Gutman!) 2020-02-23 09:59:52 +01:00
sensor Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
stdlib Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
test test: Reimplemented SDLTest_CommonUsage() to restore binary compatibility. 2020-02-12 13:09:38 -05:00
thread Fixed bug 4992 - UWP/WinRT does not set thread priority when using SDL_SetThreadPriority 2020-03-01 12:50:42 -08:00
timer Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
video Fixed bug 5007 - Segfault in KMSDRM_VideoQuit() on Raspberry Pi Zero with no display attached 2020-03-02 14:55:40 -08:00
SDL_assert_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_internal.h SDL_LEAN_AND_MEAN defaults off 2020-01-23 01:03:23 -08:00
SDL_log.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00