SDL/include/SDL3
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
..
SDL.h Updated to version 3.2.19 for development 2025-07-14 11:44:22 -07:00
SDL_assert.h Update include/SDL3/SDL_assert.h 2025-02-21 11:07:54 -08:00
SDL_asyncio.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_atomic.h Sync SDL3 wiki -> header 2025-01-28 19:01:16 +00:00
SDL_audio.h audio: Binding an SDL_AudioStream will set missing formats. 2025-07-15 06:44:12 -04:00
SDL_begin_code.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_bits.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_blendmode.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_camera.h Rename parameter of type SDL_CameraID from devid to instance_id 2025-01-29 17:49:53 -08:00
SDL_clipboard.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_close_code.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_copying.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_cpuinfo.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_dialog.h Sync SDL3 wiki -> header 2025-03-01 16:26:19 +00:00
SDL_egl.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_endian.h docs: Documentation for SDL_Swap64 was reporting the wrong return type. 2025-07-11 09:59:13 -07:00
SDL_error.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_events.h events: Add integer wheel fields for sdl2-compat 2025-05-01 22:51:54 -05:00
SDL_filesystem.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_gamepad.h Sync SDL3 wiki -> header 2025-01-24 04:47:03 +00:00
SDL_gpu.h Corrected documentation for SDL_SetGPUSwapchainParameters() 2025-04-23 16:16:24 -07:00
SDL_guid.h Note that SDL_GUIDToString() and SDL_StringToGUID() are thread-safe. 2025-02-06 10:44:21 -08:00
SDL_haptic.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_hidapi.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_hints.h Disable SDL_HINT_JOYSTICK_RAWINPUT by default 2025-05-27 09:51:58 -07:00
SDL_init.h Removed obsolete documentation 2025-05-28 15:57:23 -07:00
SDL_intrin.h All SDL 3.0 release symbols are at version 3.2.0 2025-01-21 10:19:21 -08:00
SDL_iostream.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_joystick.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_keyboard.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_keycode.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_loadso.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_locale.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_log.h Sync SDL3 wiki -> header 2025-02-13 05:39:38 +00:00
SDL_main.h Sync SDL3 wiki -> header 2025-02-25 16:39:56 +00:00
SDL_main_impl.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_messagebox.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_metal.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_misc.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_mouse.h Formatting spaces around pointer symbol. 2025-02-03 17:03:26 -08:00
SDL_mutex.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_oldnames.h Added SDL_HINT_JOYSTICK_ENHANCED_REPORTS 2025-01-02 17:18:09 -08:00
SDL_opengl.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_opengl_glext.h Renamed Gpu to GPU 2024-08-29 17:33:52 -07:00
SDL_opengles.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_opengles2.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_opengles2_gl2.h
SDL_opengles2_gl2ext.h
SDL_opengles2_gl2platform.h
SDL_opengles2_khrplatform.h
SDL_pen.h All SDL 3.0 release symbols are at version 3.2.0 2025-01-21 10:19:21 -08:00
SDL_pixels.h Update SDL_pixels.h 2025-05-29 11:03:54 -07:00
SDL_platform.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_platform_defines.h Remove #undef __3DS__ 2025-02-04 13:57:41 -08:00
SDL_power.h Sync SDL3 wiki -> header 2025-03-31 08:53:19 -07:00
SDL_process.h Formatting spaces around pointer symbol. 2025-02-03 17:03:26 -08:00
SDL_properties.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_rect.h Remove const from parameter of inline function SDL_RectsEqualEpsilon() 2025-02-03 19:46:36 -08:00
SDL_render.h Removed incorrect documentation for SDL_RenderViewportSet() 2025-04-22 10:17:57 -07:00
SDL_revision.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_scancode.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_sensor.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_stdinc.h stdinc: Corrected documentation for SDL_atan2 and SDL_atan2f. 2025-05-22 09:52:51 -04:00
SDL_storage.h Sync SDL3 wiki -> header 2025-02-25 16:58:12 +00:00
SDL_surface.h Updated SDL_StretchSurface() documentation 2025-05-29 09:09:29 -07:00
SDL_system.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_test.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_test_assert.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_test_common.h Formatting spaces around pointer symbol. 2025-02-03 17:03:26 -08:00
SDL_test_compare.h All SDL 3.0 release symbols are at version 3.2.0 2025-01-21 10:19:21 -08:00
SDL_test_crc32.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_test_font.h All SDL 3.0 release symbols are at version 3.2.0 2025-01-21 10:19:21 -08:00
SDL_test_fuzzer.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_test_harness.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_test_log.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_test_md5.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_test_memory.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_thread.h Formatting spaces around pointer symbol. 2025-02-03 17:03:26 -08:00
SDL_time.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_timer.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_touch.h Sync SDL3 wiki -> headers. 2025-01-21 13:12:25 -05:00
SDL_tray.h Sync SDL3 wiki -> header 2025-02-05 15:45:41 +00:00
SDL_version.h Updated to version 3.2.19 for development 2025-07-14 11:44:22 -07:00
SDL_video.h Add support for non-constrained and non-grabbing popups 2025-07-11 14:26:51 -04:00
SDL_vulkan.h Tweak Vulkan include guard check and 64-bit platform defines (#13210) 2025-06-12 09:32:32 -07:00