Ryan C. Gordon
f2ae6503c0
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 .
2025-07-15 06:40:09 -04:00
..
2025-05-22 11:07:22 -07:00
2025-01-21 13:12:25 -05:00
2025-01-28 19:01:16 +00:00
2025-07-15 06:40:09 -04:00
2025-05-30 23:56:50 +03:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-01-29 17:49:53 -08:00
2025-01-21 13:12:25 -05:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-21 13:12:25 -05:00
2025-03-01 16:26:19 +00:00
2025-01-01 07:45:52 -08:00
2025-07-02 09:29:40 -04:00
2025-01-21 13:12:25 -05:00
2025-06-21 07:33:25 -07:00
2025-06-03 15:31:53 +00:00
2025-04-27 18:02:41 +00:00
2025-05-30 16:34:34 +02:00
2025-02-06 10:44:21 -08:00
2025-04-24 08:51:55 -07:00
2025-01-21 13:12:25 -05:00
2025-07-14 23:50:35 +00:00
2025-05-28 15:57:04 -07:00
2025-01-21 10:19:21 -08:00
2025-06-17 16:41:24 -04:00
2025-03-12 22:23:23 +00:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-06-01 22:00:52 +00:00
2025-01-01 07:45:52 -08:00
2025-06-13 17:06:54 +00:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-06-05 16:02:05 +00:00
2025-03-13 10:08:32 -04:00
2025-01-02 17:18:09 -08:00
2024-08-29 17:33:52 -07:00
2025-01-01 07:45:52 -08:00
2022-11-26 22:15:18 -08:00
2022-11-26 22:15:18 -08:00
2022-11-26 22:15:18 -08:00
2022-11-26 22:15:18 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-21 10:19:21 -08:00
2025-05-29 11:03:31 -07:00
2025-05-22 18:08:13 +00:00
2025-01-21 13:12:25 -05:00
2025-03-31 15:51:57 +00:00
2025-05-12 16:18:27 +00:00
2025-01-21 13:12:25 -05:00
2025-04-13 16:33:01 +00:00
2025-06-24 21:56:20 +03:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-01-21 13:12:25 -05:00
2025-07-11 14:24:12 -04:00
2025-05-19 20:23:53 +00:00
2025-06-01 21:52:34 +00:00
2025-05-07 05:54:39 +00:00
2025-01-01 07:45:52 -08:00
2025-03-25 08:03:32 -07:00
2025-01-21 10:19:21 -08:00
2025-01-01 07:45:52 -08:00
2025-01-21 10:19:21 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-02-03 17:03:26 -08:00
2025-01-21 13:12:25 -05:00
2025-06-28 12:31:32 +00:00
2025-01-21 13:12:25 -05:00
2025-02-05 15:45:41 +00:00
2025-05-31 21:11:00 +00:00
2025-07-11 18:20:01 +00:00
2025-06-12 09:32:07 -07:00
2025-03-01 19:31:00 -08:00