mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-26 13:05:39 +00: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.9%
C++
4%
Objective-C
3.4%
CMake
1.8%
Java
0.7%
Other
1.9%