PDA

View Full Version : pulseaudio and multiple applications


KhaaL
February 29th, 2008, 12:16 PM
I had high expectations for pulseaudio to magically let me play several non-alsa applications toghether. However as it is right now, I can't even play several alsa applications at once... Yes, I'm back to the oss era. Let me give you an example:

Before I was able to play music on amarok and enjoy quake wars or any other game on wine. Now I can't do that, even though all three worked fine with each other when I ran ALSA in gutsy gibbon.

Have I forgot to configure something in order to make it run as it's intended to be?

Choad
February 29th, 2008, 01:19 PM
here we go again!

i seriously hope you're the exception rather than the rule

KhaaL
February 29th, 2008, 03:11 PM
here we go again!

i seriously hope you're the exception rather than the rule

Way to enlighten me on the subject :rolleyes:

FYI i did search for threads regarding pulseaudio and didn't find much help.

glasen
February 29th, 2008, 03:43 PM
Here comes the light ;-) :

Install the following packages (if you haven't already installed them) :

gstreamer0.10-pulseaudio (Gstreamer-pulseaudio-plugin)

libao-pulse (pulseaudio for libao. Some application are based on it)

libsdl1.2debian-pulseaudio (Pulseaudio-driver for libsdl. Replaces the package "libsdl1.2debian-alsa")

libasound2-plugins (Pulseaudio-plugin for ALSA)

After installing these packages you must activate pulseaudio for ALSA, Gstreamer and libao :

1. Gstreamer is very easy. Start "gstreamer-properties" or "System->Audio" and select "Pulseaudio" for each entry.

2. For ALSA you must open a console an type in "asound set-pulseaudio". Thats it. ALSA now uses Pulseaudio as default "soundcard"l

3. For libao you must edit the file "/etc/libao.conf" and change the entry "default_driver" from "alsa" to "pulseaudio"

4. SDL uses Pulseaudio automatically. There is no change needed.

That's it. All applications should now use Pulseaudio.

KhaaL
February 29th, 2008, 04:01 PM
awesome little guide! :D I had to make one small change:

the command asound dosen't exist, the command is therefore asoundconf set-pulseaudio

I'm a little suprised that the neccesarly changes in 8.04 haven't been made considering its using pulseaudio by default. I'm gonna play around and report back how well things work.

Edit: I also have issues with flash 9 (v 9,0,115,0) sound, even with libflashsupport installed.
Edit2: I tried changing FIREFOX_DSP="none" to "aoss" and to "esd" in /etc/firefox-3.0/firefoxrc with no luck

KhaaL
February 29th, 2008, 04:21 PM
Alright, for gstramer it worked nicely! but for ALSA there is no improvement, nor in OSS. I haven't tested any games / applications dependant on SDL or libao yet

no1wantdthisname
February 29th, 2008, 04:41 PM
I've had the same problem since pulseaudio was first included. Unfortunately, pulseaudio works with everything but wine. I'm stuck with alsa for now.

KhaaL
March 1st, 2008, 04:27 AM
I've been wrestling with this for 6 hours and I'm not really getting anywhere. Since the main apps I run dosen't go well with PA (flash 9, ETQW, wine), I'd rather remove it and revert to ALSA.

Is that done in Hardy Heron by simply... " Remove the added lines to /etc/asound.conf. After this, you may remove all of the installed PulseAudio packages. "? (taken from pulseaudio ubuntu wiki).

Toxicity999
March 1st, 2008, 01:15 PM
padsp winecfg choose OSS, then start every wine app with padsp wine app.exe Should work fine.

glasen
March 1st, 2008, 05:19 PM
I forgot to add the package "libflashsupport" to my list. This package adds pulseaudio-support to Flashplayer v9.

For ALSA-only applications the command "asoundconf set-pulseaudio" will do the magic (See my first post).

no1wantdthisname
March 1st, 2008, 11:17 PM
padsp winecfg choose OSS, then start every wine app with padsp wine app.exe Should work fine.

I've tried this, but still doesn't work with warcraft 3.

EDIT: Finally figured it out. For anyone who is using 64bit you need the 32bit libraries.
This will fix flash/wine.

You will need these 32bit packages:
libasound2-plugins
libcap1
libflashsupport
libpulse0
pulseaudio-utils

Get them here:
http://archive.ubuntu.com/ubuntu/pool/main/libc/libcap/
http://archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/
http://archive.ubuntu.com/ubuntu/pool/universe/libf/libflashsupport/
http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-plugins/
Open data.tar.gz for each package and go to /usr/lib/.
Extract everything to /usr/lib32.

Here's a screenshot of it all working in pavucontrol.

KhaaL
March 2nd, 2008, 12:02 AM
I forgot to add the package "libflashsupport" to my list. This package adds pulseaudio-support to Flashplayer v9.

For ALSA-only applications the command "asoundconf set-pulseaudio" will do the magic (See my first post).

I've both libflashsupport installed and asoundconf set-pulseaudio command made, with no improvement unfortunatly.

I've tried this, but still doesn't work with warcraft 3.

EDIT: Finally figured it out. For anyone who is using 64bit you need the 32bit libraries.
This will fix flash/wine.

You will need these 32bit packages:
libasound2-plugins
libcap1
libflashsupport
libpulse0
pulseaudio-utils

Get them here:
http://archive.ubuntu.com/ubuntu/pool/main/libc/libcap/
http://archive.ubuntu.com/ubuntu/pool/main/p/pulseaudio/
http://archive.ubuntu.com/ubuntu/pool/universe/libf/libflashsupport/
http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-plugins/
Open data.tar.gz for each package and go to /usr/lib/.
Extract everything to /usr/lib32.

I actually om 64bit, so that could be the problem. however, I have all those mentioned packages installed through apt-get.

no1wantdthisname
March 2nd, 2008, 12:06 AM
I've both libflashsupport installed and asoundconf set-pulseaudio command made, with no improvement unfortunatly.



I actually om 64bit, so that could be the problem. however, I have all those mentioned packages installed through apt-get.

You need the 32bit libraries. I.E. those with i386 at the end. Right now you have the 64bit libraries installed.

KhaaL
March 2nd, 2008, 12:14 AM
You need the 32bit libraries. I.E. those with i386 at the end. Right now you have the 64bit libraries installed.

And force them through dpkg -i --force-archotecture?

sudo dpkg -i --force-architecture libasound2-plugins_1.0.15-1ubuntu3_i386.deb libcap1_1.10-14_i386.deb libflashsupport_1.9-0ubuntu1_i386.deb libpulse-browse0-dbg_0.9.9-1ubuntu2_i386.deb

no1wantdthisname
March 2nd, 2008, 12:32 AM
That's probably a bad idea. You only need the libraries. Open each .deb in file-roller, and then open the data.tar.gz.

Navigate to /usr/lib.

Extract whatever is there to /usr/lib32.

KhaaL
March 2nd, 2008, 05:59 AM
That's probably a bad idea. You only need the libraries. Open each .deb in file-roller, and then open the data.tar.gz.

Navigate to /usr/lib.

Extract whatever is there to /usr/lib32.

That helped with both flash and alsa games. However everything is now playing with a 2-3 second lag, wether i have another sound application running or not

soapytheclown
March 4th, 2008, 05:45 AM
Here's a screenshot of it all working in pavucontrol.

where have u got that sound panel?? mine still looks like the normal one :S:S

--edit--

duhh sudo apt-get install pavucontrol