[Bug 394721] New: xmoto (and possible other SDL apps) audio broken on gnome installs
https://bugzilla.novell.com/show_bug.cgi?id=394721 Summary: xmoto (and possible other SDL apps) audio broken on gnome installs Product: openSUSE 11.0 Version: Beta 3 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: wberrier@novell.com QAContact: qa@suse.de CC: rodrigo@novell.com, cyberorg@opensuse.org, prusnak@novell.com Found By: --- xmoto uses SDL. Although gnome installs are going to be set up to route alsa through pulseaudio, xmoto has poor audio when run in this manner. (Some sdl apps work fine when doing this, ie: frozen-bubble) To fix this, SDL needs to be built with pulseaudio support. (Add libpulse-devel to BuildRequires, that's it). Then, we need to set the environment variable for gnome. SDL_AUDIODRIVER=pulse When doing this, xmoto audio sounds perfect. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c1 --- Comment #1 from Wade Berrier <wberrier@novell.com> 2008-05-27 09:39:28 MDT --- SDL package with new BuildRequires submitted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c2 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com Status|NEW |NEEDINFO Info Provider| |wberrier@novell.com --- Comment #2 from Stephan Kulow <coolo@novell.com> 2008-05-27 12:21:28 MDT --- this will make SDL depend on pulseaudio, right? No go then -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c3 --- Comment #3 from Wade Berrier <wberrier@novell.com> 2008-05-27 12:35:01 MDT --- Yes, it will depend on the pulse audio library (but not the pulseaudio server). Why is this a no go? sdl will still default to alsa/oss. It only tries pulse if it can't initialize alsa, oss, esd, or if the SDL_AUDIODRIVER=pulse env var is set. Is this the issue or is it something else? The only package requirement that it pulls in is: libpulse0-0.9.10-18 (the rpm is 142k) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c4 Wade Berrier <wberrier@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|wberrier@novell.com | --- Comment #4 from Wade Berrier <wberrier@novell.com> 2008-05-27 16:23:44 MDT --- Update NEEDINFO. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c5 --- Comment #5 from Wade Berrier <wberrier@novell.com> 2008-05-28 11:44:55 MDT --- sdl has support to dlopen the audio output plugins, so SDL wouldn't need to depend on libpulse0 at all (if this is the issue). But, there's a bug for this on x86_64. SDL is configured to dlopen libasound as well, but that only happens on i586. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 JP Rosevear <jpr@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-gnome@forge.provo.novell.com |rodrigo@novell.com Status Whiteboard| |gnome-showstopper gnome-function-does-not-work -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c6 --- Comment #6 from Wade Berrier <wberrier@novell.com> 2008-05-28 16:47:58 MDT --- I'm not sure if this will make it for 11.0, but I submitted an updated SDL. It adds dynamic loading of libpulse-simple and fixes dynamic loading of libasound on x86_64. This means that the SDL package won't depend on libpulse0. If this is checked in, we also need to set: SDL_AUDIODRIVER=pulse somehow in the gnome session environment. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User rodrigo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c7 Rodrigo Moya <rodrigo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vuntz@novell.com --- Comment #7 from Rodrigo Moya <rodrigo@novell.com> 2008-05-29 05:43:59 MDT --- I think there's no problem with adding that to gnome-session (Vincent ?), so could you please update the bug when/if your submission gets accepted? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User rodrigo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c8 --- Comment #8 from Rodrigo Moya <rodrigo@novell.com> 2008-05-29 06:19:10 MDT --- Wade, where is your SDL submission? I can't find it in abuild -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c9 --- Comment #9 from Wade Berrier <wberrier@novell.com> 2008-05-29 06:55:23 MDT --- It's sitting here: /work/src/done/STABLE/SDL Is that the correct place? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User rodrigo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c10 --- Comment #10 from Rodrigo Moya <rodrigo@novell.com> 2008-05-29 09:32:34 MDT --- yes, didn't see it before, now I do -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c11 --- Comment #11 from Vincent Untz <vuntz@novell.com> 2008-05-29 09:41:36 MDT --- Will KDE use pulseaudio too? If it's only GNOME, the best way to add the environment variable is in /usr/bin/gnome (which is shipped by gnome-session). Else, the x startup scripts are probably a better place (source package is xorg-x11, iirc) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c12 --- Comment #12 from Wade Berrier <wberrier@novell.com> 2008-05-29 09:57:05 MDT --- Unfortunately, kde on opensuse won't be using pulseaudio (although other distro's kde installs use pulse). So this needs to be gnome specific. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c13 --- Comment #13 from Stephan Kulow <coolo@novell.com> 2008-05-31 04:57:16 MDT --- I wouldn't do it gnome specific, but pulseaudio specifc. E.g. install /etc/profile.d/pulseaudio.* -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c14 --- Comment #14 from Vincent Untz <vuntz@novell.com> 2008-06-02 07:56:47 MDT --- FWIW, I tried the updated SDL, and I still get bad audio in xmoto and frozen-bubble :/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c15 Wade Berrier <wberrier@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |vuntz@novell.com --- Comment #15 from Wade Berrier <wberrier@novell.com> 2008-06-02 08:53:24 MDT --- (In reply to comment #14 from Vincent Untz)
FWIW, I tried the updated SDL, and I still get bad audio in xmoto and frozen-bubble :/
How does it compare to using the pulse alsa plugin? Did you set the SDL_AUDIODRIVER=pulse variable? (That isn't done automatically yet). Also, try the settings from #395275 to see if that helps (although it's mostly for latency). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c16 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|vuntz@novell.com | --- Comment #16 from Vincent Untz <vuntz@novell.com> 2008-06-02 09:27:27 MDT --- (In reply to comment #15 from Wade Berrier)
(In reply to comment #14 from Vincent Untz)
FWIW, I tried the updated SDL, and I still get bad audio in xmoto and frozen-bubble :/
How does it compare to using the pulse alsa plugin?
More or less same quality (ie, equally bad).
Did you set the SDL_AUDIODRIVER=pulse variable? (That isn't done automatically yet).
Yep.
Also, try the settings from #395275 to see if that helps (although it's mostly for latency).
Fix the issues for me :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User rodrigo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c17 --- Comment #17 from Rodrigo Moya <rodrigo@novell.com> 2008-06-02 10:31:21 MDT --- Should we then submit the gnome-session change ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User wberrier@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c18 --- Comment #18 from Wade Berrier <wberrier@novell.com> 2008-06-02 10:50:27 MDT --- I think we should, because this change alone fixes it for some cards. I don't imagine that this change will make it worse. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c19 --- Comment #19 from Vincent Untz <vuntz@novell.com> 2008-06-02 14:18:57 MDT --- (In reply to comment #13 from Stephan Kulow)
I wouldn't do it gnome specific, but pulseaudio specifc. E.g. install /etc/profile.d/pulseaudio.*
Not sure it's the best thing to do -- if I install both GNOME & KDE, I want the sound in xmoto even in KDE. And it seems that SDL will not start pulseaudio if it's not running :/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User rodrigo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c20 --- Comment #20 from Rodrigo Moya <rodrigo@novell.com> 2008-06-03 04:07:29 MDT --- ok, this is the patch I've written for gnome-session: # Uncomment after SLED12, remove after SLED14: #rm -f ~/.skel/gnome2-run ~/.skel/gnome2-run-9.2 ~/.skel/sled10-run + # TODO: look for a better fix for 11.1 + export SDL_AUDIODRIVER=pulse exec /usr/bin/gnome-session Vincent, could you review and approve/reject it please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User vuntz@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c21 --- Comment #21 from Vincent Untz <vuntz@novell.com> 2008-06-03 04:23:50 MDT --- Looks good to me. It's obviously not a perfect fix, but the current situation is a bit messy because only GNOME uses pulseaudio. So, yeah, +1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394721 User rodrigo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394721#c24 Rodrigo Moya <rodrigo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #24 from Rodrigo Moya <rodrigo@novell.com> 2008-06-03 08:25:53 MDT --- This is now accepted into FACTORY, closing then -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com