After much tinkering, I have finally found a setup with Pulse Audio on Hardy that I am happy with. Since a lot of people are having trouble with it, here's what I did:
- Added link to method for 5.1 sound
- Patched SDL pulse driver. See changes in Step 3: libsdl1.2debian-all is no longer needed.
I've submitted a bug to try to get this patch incorporated in the Ubuntu version: https://bugs.launchpad.net/ubuntu/+s....2/+bug/225467
- Created repository for new pulse drive (supports i386, amd64, and lpia)
More changes to Step 3 now.
1) Install additional packages
2) Configure settings
sudo apt-get install libao-pulse libasound2-plugins
--edit your /etc/asound.conf file like so:
--edit your /etc/libao.conf like so:
Create any files that don't exist.
--Go to System>Preferences>Sound
--Set the top four boxed to PulseAudio Sound Server
--Set the Default mixer to the name of your sound card
3) Install additional Pulse packages
Allow it to install the additional dependencies.
sudo apt-get install libflashsupport padevchooser pulseaudio-module-hal pulseaudio-module-x11
To ensure you have the default libSDL install, first run this:
Now add the following lines to /etc/apt/sources.list (this will add my repository, it only the packages you need):
sudo apt-get install libsdl1.2debian libsdl1.2debian-alsa
Now run the following:
## zman0900's PPA
deb http://ppa.launchpad.net/zman0900/ubuntu hardy main
deb-src http://ppa.launchpad.net/zman0900/ubuntu hardy main
Note: If libsdl1.2debian-pulseaudio will not install for you, do the following two things instead:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libsdl1.2debian-pulseaudio
and add this to ~/.profile :
sudo apt-get install libsdl1.2debian-all
Both libsdl1.2debian-pulseaudio and libsdl1.2debian-all contain that patched Pulse driver, all just requires you to explicitly use Pulse with the SDL_AUDIODRIVER environment variable.
# Make SDL audio work properly with Pulse
5) Set up device chooser
Go to Applications>Sound & Video>PulseAudio Device Chooser
It will show up as a plug in notification area.
Left click, click Preferences, check Start applet on session login.
6) RESTART THE COMPUTER!
Everything should be set up now. You should now be able to play audio through both ALSA, esd, and Pulse applications at the same time, and everything will show up in the Device Chooser as a separate, configurable stream.
See the PulseAudio website for info about many other applications:
About OSS applications:
If you want to use an OSS application at the same time as any other sounds playing through Pulse, us the command:
This should work for any OSS application. That will redirect the sound through Pulse. Without padsp, the OSS application is the only thing that can play sound while its running.
Possible Method for 5.1 Sound:
See here: http://ubuntuforums.org/showpost.php...38&postcount=4
- Wine does not work properly through alsa, esd, or oss.
- The pulse driver for SDL has a very slight audio lag, but it is much less than with the esd driver.
- Some other programs may not work that well with alsa through Pulse.
See bug: http://www.pulseaudio.org/ticket/285
Post something if you know of more.