SDL/src
Ryan C. Gordon 7f408e57ee
audio: Keep all available devices in a hashtable instead of linked lists.
All devices are in a single hash, whether playback or capture, or physical
or logical. Lookups are keyed on device ID and map to either
`SDL_AudioDevice *` for physical devices or `SDL_LogicalAudioDevice *` for
logical devices (as an implementation detail, you can determine which object
type you have by checking a specific bit in the device ID).

This simplifies a bunch of code, makes some cases significantly more
efficient, and solves the problem of having to lock each physical
device while the device list rwlock is held to find logical devices by ID.

Device IDs hash perfectly evenly, too, being incrementing integers.
2023-10-14 13:34:42 -04:00
..
atomic Fix remaining typos (#7921) 2023-07-03 12:46:47 -07:00
audio audio: Keep all available devices in a hashtable instead of linked lists. 2023-10-14 13:34:42 -04:00
core Always provide an implementation for all SDL3 symbols 2023-10-12 14:00:47 +02:00
cpuinfo Fix some issues caught by check_stdlib_usage.py 2023-06-27 06:19:06 -07:00
dynapi Add unsupported functions to dynapi 2023-10-12 14:00:47 +02:00
events events: Log file drop position events and print the pointer coordinates 2023-09-20 15:00:40 -04:00
file Added properties to various SDL objects 2023-10-11 22:38:00 -07:00
filesystem gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath 2023-08-25 10:47:16 -04:00
haptic Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
hidapi Fixed crash in hid_init() if the HIDDeviceManager isn't available 2023-09-22 10:14:16 -07:00
joystick Added properties to various SDL objects 2023-10-11 22:38:00 -07:00
libm libm: use union for infinity 2023-09-25 18:02:40 +02:00
loadso Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
locale Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
main/winrt
misc Implement visionOS support 2023-08-08 22:25:04 -07:00
power linux: Handle upower's UP_DEVICE_STATE_PENDING_CHARGE, PENDING_DISCHARGE 2023-09-20 08:32:03 -07:00
render Always provide an implementation for all SDL3 symbols 2023-10-12 14:00:47 +02:00
sensor Added properties to various SDL objects 2023-10-11 22:38:00 -07:00
stdlib SDL_iconv_string() defaults to UTF-8 2023-09-24 17:27:23 -07:00
test test: Extract SDLTest_ReadSurfacePixel 2023-10-10 03:23:20 -07:00
thread Like mutexes, operations on NULL rwlocks are no-ops 2023-10-11 09:49:44 -07:00
timer SDL API renaming: SDL TLS functions 2023-05-26 08:33:15 -07:00
video wayland: Fix primary selection handling when the protocol isn't supported 2023-10-12 12:32:27 -04:00
SDL.c Added SDL properties API 2023-10-11 22:38:00 -07:00
SDL_assert.c emscripten: Restore compatibility with existing emsdk releases. 2023-09-20 14:32:41 -04:00
SDL_assert_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_error.c Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_error_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_guid.c Add error returns to void functions that can fail/set errors. 2023-02-09 07:23:21 -08:00
SDL_hashtable.c hashtable: SDL_IterateHashTable might as well provide both key and value. 2023-10-14 13:23:03 -04:00
SDL_hashtable.h hashtable: SDL_IterateHashTable might as well provide both key and value. 2023-10-14 13:23:03 -04:00
SDL_hints.c Set the hint value before calling hint callbacks 2023-06-28 08:53:48 -07:00
SDL_hints_c.h For gamepads that don't have their own sensors, try to use the system sensors. 2023-06-16 14:44:59 -07:00
SDL_internal.h Rename SDL mutex, semaphore and condition variable types to match SDL 3.0 naming convention 2023-04-28 12:08:33 -07:00
SDL_list.c Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_list.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_log.c Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_log_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_properties.c Fixed potential wraparound issue with property IDs 2023-10-12 06:22:34 -07:00
SDL_properties_c.h Added SDL properties API 2023-10-11 22:38:00 -07:00
SDL_utils.c Improve sensor detection for Linux gamepad 2023-06-26 07:32:40 -07:00
SDL_utils_c.h Improve sensor detection for Linux gamepad 2023-06-26 07:32:40 -07:00