From 04b061ea7c34ed3fb7c184c4416fe61beb6216d89a5f8211b716fcde53ae0e26 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 25 Aug 2021 11:37:32 +0000 Subject: [PATCH] Accepting request 914218 from home:tiwai:branches:multimedia:libs - Drop SDL_AUDIODRIVER override, as SDL already prefers PA as default; this also fixes the recent breakage with SDL2 (bsc#1189778) OBS-URL: https://build.opensuse.org/request/show/914218 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=241 --- pulseaudio.changes | 6 ++++++ setup-pulseaudio | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pulseaudio.changes b/pulseaudio.changes index 13e564f..489b2b9 100644 --- a/pulseaudio.changes +++ b/pulseaudio.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 25 10:45:32 CEST 2021 - tiwai@suse.de + +- Drop SDL_AUDIODRIVER override, as SDL already prefers PA as + default; this also fixes the recent breakage with SDL2 (bsc#1189778) + ------------------------------------------------------------------- Tue Aug 3 20:50:50 UTC 2021 - Ondrej Holecek diff --git a/setup-pulseaudio b/setup-pulseaudio index 0edd4b2..106e2f2 100644 --- a/setup-pulseaudio +++ b/setup-pulseaudio @@ -153,8 +153,13 @@ enable_oss() { enable_sdl() { echo "Enabling PulseAudio for SDL..." - # For SDL, we just add an environment variable, so that apps use the PA audio driver - set_variable SDL_AUDIODRIVER pulse + # We don't need the audio driver override for SDL; SDL prefers already + # pulseaudio as default (bsc#1189778) + delete_variable SDL_AUDIODRIVER + + # Alternatively, we may set "pulseaudio" explicitly, which should be + # applicable both for SDL-1.2 and SDL-2 + # set_variable SDL_AUDIODRIVER pulseaudio } enable_timidity() {