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:
Updates:
- 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
Code:
sudo apt-get install libao-pulse libasound2-plugins
2) Configure settings
--edit your /etc/asound.conf file like so:
Code:
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
--edit your /etc/libao.conf like so:
Code:
default_driver=pulse
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
Code:
sudo apt-get install libflashsupport padevchooser pulseaudio-module-hal pulseaudio-module-x11
Allow it to install the additional dependencies.
--Updated here:--
To ensure you have the default libSDL install, first run this:
Code:
sudo apt-get install libsdl1.2debian libsdl1.2debian-alsa
Now add the following lines to /etc/apt/sources.list (this will add my repository, it only the packages you need):
Code:
## zman0900's PPA
deb http://ppa.launchpad.net/zman0900/ubuntu hardy main
deb-src http://ppa.launchpad.net/zman0900/ubuntu hardy main
Now run the following:
Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libsdl1.2debian-pulseaudio
Note: If libsdl1.2debian-pulseaudio will not install for you, do the following two things instead:
Code:
sudo apt-get install libsdl1.2debian-all
and add this to ~/.profile :
Code:
# Make SDL audio work properly with Pulse
#export SDL_AUDIODRIVER=pulse
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.
--End Update--
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.
Additional Info:
See the PulseAudio website for info about many other applications:
http://pulseaudio.org/wiki/PerfectSe...tyApplications
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:
Code:
padsp <some-oss-program>
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
Current Issues:
- 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.
Bookmarks