SDL/src/audio
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
..
aaudio AAudio: Implemented sample frames hint 2025-05-11 16:06:13 -07:00
alsa alsa: change an SDL_LogError into SDL_LogDebug. 2025-06-22 21:05:10 -07:00
coreaudio audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
directsound wasapi: Force enumerated audio devices to report themselves as float32 format. 2025-07-11 18:23:01 -04:00
disk audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
dsp audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
dummy audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
emscripten emscripten: Proxy Emscripten_GetSystemTheme and EMSCRIPTENAUDIO_OpenDevice to the main thread. 2025-05-25 13:50:19 -07:00
haiku audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
jack audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
n3ds audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
netbsd audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
openslES audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
pipewire pipewire: Use a more specific stream name than "Audio Stream". 2025-04-25 14:26:03 -04:00
ps2 audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
psp audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
pulseaudio pulseaudio: Request more recording data per-fragment. 2025-06-01 02:48:49 -04:00
qnx audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
sndio audio/video: Fix uninitialized field warnings 2025-02-14 17:16:10 -05:00
vita VITA: fix audio playback 2025-05-06 12:55:34 -07:00
wasapi wasapi: Force enumerated audio devices to report themselves as float32 format. 2025-07-11 18:23:01 -04:00
SDL_audio.c audio: Binding an SDL_AudioStream will set missing formats. 2025-07-15 06:44:12 -04:00
SDL_audio_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_audio_channel_converters.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_audiocvt.c audio: Fix potential NULL dereference in AudioStream gain adjustment. 2025-01-28 13:14:25 -05:00
SDL_audiodev.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_audiodev_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_audioqueue.c audio: Fix audio stream gain going wrong in certain scenarios. 2025-01-27 20:20:17 -05:00
SDL_audioqueue.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_audioresample.c Ceil the audio resampling rate to avoid over-estimating output samples. 2025-03-01 11:07:55 -08:00
SDL_audioresample.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_audiotypecvt.c audio: hold floating point exceptions when using neon 2025-03-21 15:09:24 -07:00
SDL_mixer.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_sysaudio.h audio/video: Skip preferred drivers when loading a driver on demand 2025-02-12 11:51:36 -05:00
SDL_wave.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_wave.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00