mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
f2ae6503c0ee2d02b22bfee8be3f346a74fcc1c3

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.
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
86.4%
C++
5.9%
Objective-C
3.4%
CMake
1.6%
Perl
0.8%
Other
1.7%