mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-18 09:48:38 +08:00
f1f4d0d2297027f95ce118cdeca0284e1eaed069
If wireplumber is not running or if there is no audio device, PIPEWIRE_OpenDevice could remain stuck indefinityely on PIPEWIRE_pw_thread_loop_wait because priv->stream_init_status is never equal to PW_READY_FLAG_ALL_PREOPEN_BITS. Use PIPEWIRE_pw_thread_loop_timed_wait instead with a 2 seconds timeout and bail out with an error on timeout. A 2 seconds timeout seems plenty enough: in my observations, when there is an audio device, the wait for the device to be ready is just a few milliseconds.
…
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
87.5%
C++
4.4%
Objective-C
3.4%
CMake
1.7%
Python
0.7%
Other
2%