At Wed, 27 Jul 2011 09:19:31 +0200, Ludwig Nussel wrote:
Takashi Iwai wrote:
At Wed, 27 Jul 2011 08:53:00 +0200, Ludwig Nussel wrote:
Takashi Iwai wrote:
At Mon, 25 Jul 2011 09:16:33 +0200, Ludwig Nussel wrote:
Vincent Untz wrote:
I'm fixing this, see https://bugzilla.novell.com/show_bug.cgi?id=707703 for a small discussion. With the fix, when the pulseaudio package is installed/updated, relevant configuration files are updated based on the PULSEAUDIO_ENABLE setting.
On the one hand people are complaining about SuSEconfig and we try to get rid of it. On the other hand we introduce scripts like pulseaudio-setup that are even worse. IMO that script needs to be removed. Instead the apps it tries to configure must be patched to probe for PA (ie without autospawn) and use it when available. That way applications started in a PA enabled session use PA but when started in a session without PA transparently fall back to alsa/OSS. That's how e.g. openal-soft behaves.
FYI, I implemented it for alsa-lib pulse plugin. Now it falls back to the system-default (e.g. dmix) when the connection to PA failed.
Nice. Does that mean it's safe now to enable alsa-plugins-pulse unconditionally? Ie without the special asound-pulse.conf?
/etc/asound-pulse.conf is still needed since alsa-plugins-pulse is an add-on package, but /etc/alsa-pulse.conf (how confusing!) can be merged to the default configuration, yes. That is, alsa-plugins-pulse will be activated automatically when the package is installed. So far, it's activated only when $ALSA_CONFIG_PATH=/etc/alsa-pulse.conf is set (which was done in setup-pulseaudio script).
One remaining problem is that PA library always spews an error message when a connection failed from a client and there is no way to suppress it. This is annoying behavior, and should be fixed in PA side.
AFAICS you don't pass PA_CONTEXT_NOAUTOSPAWN. Ie the lib will try to start the daemon then. It would only fail if pulseaudio is actually uninstalled. By passing PA_CONTEXT_NOAUTOSPAWN the connection just silently fails if the daemon isn't running.
Good point. This can be set conditionally when the fallback option is set. I'll add the patch now. thanks, Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org