Le 25/8/21 à 4:41 pm, Takashi Iwai a écrit :
On Wed, 25 Aug 2021 10:21:35 +0200, munix9 wrote:
Am 25.08.21 um 10:16 schrieb Takashi Iwai:
On Tue, 24 Aug 2021 14:20:42 +0200, Jan Engelhardt wrote:
On Monday 2021-08-23 21:09, Len Nordstrom wrote (via private):
The most recent version of SDL no longer seems to seems to be communicating with Pulse Audio. After updating to SDL 2.0.16 all my games that use SDL2 lost all sound.
SDL2 does strict checking of the module name, something it only did *very* loosely previously (commit 25f9ed87ff6947d9576fc9d79dee0784e638ac58).
The problem is in the pulseaudio RPM which:
/etc/profile.d/pulseaudio.sh:export SDL_AUDIODRIVER=pulse /etc/profile.d/pulseaudio.csh:setenv SDL_AUDIODRIVER pulse
A cursory play-around-a-bit tells me this should be "pulseaudio", not "pulse".
Aha, thanks for finding it out.
Can anyone confirm the theory, that replacing with "pulseaudio" fixes the issue, and open a Bugzilla entry?
thanks,
Takashi
https://wiki.libsdl.org/FAQUsingSDL#how_do_i_choose_a_specific_audio_driver
OK, that has been changed from the old SDL...
Now I opened a bug entry https://bugzilla.opensuse.org/show_bug.cgi?id=1189778
Takashi
Note that SDL 2.0.16 also adds support for comma-separated lists for SDL_AUDIODRIVER[1]. So it will accept SDL_AUDIODRIVER=pulse,pulseaudio if we need to handle both SDL 1.2 and SDL 2.0. The downside is that -- while SDL 1.2 does now also support this[2] -- it's not getting a new release so hasn't been picked up by distros yet. (The point is somewhat moot, as I think just letting SDL default to pulse/pulseaudio is ultimately the right solution, and hopefully sdl12-compat[3] will take over and let SDL 1.2 applications use SDL 2.0 at some point, anyway.) -- David [1]: https://github.com/libsdl-org/SDL/pull/4267 [2]: https://github.com/libsdl-org/SDL-1.2/commit/e23a8932d254bff936aca61bd40ad7e... [3]: https://github.com/libsdl-org/sdl12-compat