View Poll Results: Does this work for you?

248. You may not vote on this poll
  • Yes

    137 55.24%
  • No

    111 44.76%
Results 1 to 10 of 175

Thread: How To: The (almost) Perfect Pulse Audio Setup

Threaded View

  1. #1
    Join Date
    Dec 2006
    Ohio, USA

    Lightbulb How To: The (almost) Perfect Pulse Audio Setup

    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:

    1. Added link to method for 5.1 sound
    2. 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:
    3. Created repository for new pulse drive (supports i386, amd64, and lpia)
      More changes to Step 3 now.

    1) Install additional packages
    sudo apt-get install libao-pulse libasound2-plugins
    2) Configure settings
    --edit your /etc/asound.conf file like so:
    pcm.pulse {
        type pulse
    ctl.pulse {
        type pulse
    pcm.!default {
        type pulse
    ctl.!default {
        type pulse
    --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
    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:
    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):
    ## zman0900's PPA
    deb hardy main
    deb-src hardy main
    Now run the following:
    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:
    sudo apt-get install libsdl1.2debian-all
    and add this to ~/.profile :
    # 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.

    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:

    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:
    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:

    Current Issues:
    1. Wine does not work properly through alsa, esd, or oss.
    2. The pulse driver for SDL has a very slight audio lag, but it is much less than with the esd driver.
    3. Some other programs may not work that well with alsa through Pulse.
      See bug:

    Post something if you know of more.
    Last edited by zman0900; May 3rd, 2008 at 01:46 AM. Reason: Added repository


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts