SDL/src
Ryan C. Gordon e6a7121904
audio: Binding an SDL_AudioStream will set missing formats.
It _must_ have the format set for the opposite side from the device (so
playback needs the src format set, and recording needs the dst format set),
since the stream gets mangled by the device thread if not. So if it has never
been set (stream created with NULL audiospec), just set it to match the device.
If the stream is just meant to buffer and not convert, this is desired
behavior, even if it didn't also fix a bug.

Binding the audio stream will always set the device side's format, as usual;
this does not need to be set by the caller at all.

Fixes #13363.

(cherry picked from commit f2ae6503c0)
2025-07-15 06:44:12 -04:00
..
atomic Updated copyright for 2025 2025-01-01 07:45:52 -08:00
audio audio: Binding an SDL_AudioStream will set missing formats. 2025-07-15 06:44:12 -04:00
camera Use HEAPU8.set rather than Module.HEAPU8.set (thanks @sbc100!) 2025-06-02 09:48:55 -07:00
core Updated to version 3.2.19 for development 2025-07-14 11:44:22 -07:00
cpuinfo Define illegal_instruction() when it will be actually used 2025-05-08 12:50:08 -07:00
dialog cocoa: Don't minimize fullscreen windows for a modal file dialog. 2025-07-11 15:06:10 -04:00
dynapi dynapi: Don't use SDL_getenv; it might malloc before the app sets an allocator. 2025-02-06 12:46:15 -05:00
events Fix support for F21 to F24 scancodes on Linux 2025-06-20 09:07:27 -07:00
filesystem Match style 2025-02-27 07:10:09 -08:00
gpu gpu: Fixed uninitialized variable in SDL_AcquireGPUCommandBuffer(). 2025-07-11 18:23:15 -04:00
haptic remove spoofed SDL_HelperWindow when SDL_VIDEO is off 2025-07-12 07:48:56 -07:00
hidapi Fixed build 2025-07-11 14:12:27 -07:00
io asyncio: SDL_LoadFileAsync was not null-terminating the file data. 2025-03-20 16:30:04 -07:00
joystick Removed the Mayflash GameCube adapter from the PS3 controller list 2025-07-14 11:30:46 -07:00
libm Updated copyright for 2025 2025-01-01 07:45:52 -08:00
loadso Updated copyright for 2025 2025-01-01 07:45:52 -08:00
locale Fixed language detection on iOS 2025-01-03 15:27:08 -08:00
main Updated copyright for 2025 2025-01-01 07:45:52 -08:00
misc Bumped deployment requirements for Apple platforms 2025-01-14 12:03:07 -08:00
power Updated copyright for 2025 2025-01-01 07:45:52 -08:00
process Fixed process I/O redirection to NUL on Windows 2025-04-11 15:45:33 -07:00
render Update the viewport when logical presentation changes 2025-06-25 09:59:13 -07:00
sensor Remove newlines from log messages 2025-01-22 20:25:04 -08:00
stdlib Initialize the padding of aligned allocations to zero 2025-03-12 11:43:09 -07:00
storage storage: Declare a private bootstrap for NDA user storage 2025-05-30 12:15:43 -04:00
test Removed help for obsolete (and removed) command line option 2025-03-12 12:38:52 -07:00
thread PSP: Truncate thread name when passing to sceKernelCreateThread 2025-07-11 10:00:07 -07:00
time time: Fix compilation on Solaris 2025-03-19 12:27:39 -04:00
timer timer, windows: allow building high resolution code with old SDKs. 2025-02-02 21:23:50 +03:00
tray Fix #13083 segfault in SDL_RemoveTrayEntry() for submenu entries 2025-05-21 13:32:47 -07:00
video windows: Fix crash when using a system that reports itself as Windows 17763 or newer, but is missing many of the newer dark mode window functions (Linux Mint Cinnamon w/ Proton 7.0.6) 2025-07-13 20:10:26 -07:00
SDL.c check SDL_PLATFORM_WINDOWS instead of SDL_VIDEO_DRIVER_WINDOWS when using SDL_HelperWindow 2025-07-12 07:48:56 -07:00
SDL_assert.c emscripten: Don't use legacy JS library functions for assertions 2025-03-20 16:32:40 -07:00
SDL_assert_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_error.c Don't log SDL errors by default 2025-01-02 17:32:10 -08:00
SDL_error_c.h Save and restore error messages when rolling back after failed init 2025-03-02 07:57:36 -08:00
SDL_guid.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_hashtable.c hashtable: Redesign the hashtable API. 2025-02-15 18:52:56 -05:00
SDL_hashtable.h hashtable: Redesign the hashtable API. 2025-02-15 18:52:56 -05:00
SDL_hints.c Added special handling for SDL_HINT_ANDROID_ALLOW_RECREATE_ACTIVITY 2025-04-03 11:34:03 -07:00
SDL_hints_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_internal.h Added macros to push/pop error messages while cleaning up 2025-05-29 10:54:46 -07:00
SDL_list.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_list.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_log.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_log_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_properties.c Don't allow further operations on properties while we're destroying them 2025-02-26 08:34:14 -08:00
SDL_properties_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_utils.c Added support for the HORI Taiko No Tatsujin Drum Controller 2025-04-02 08:30:55 -07:00
SDL_utils_c.h Include the VID/PID of generic keyboard/mouse devices on Windows 2025-02-27 14:03:39 -08:00