View Poll Results: Does this work for you?

Voters
248. You may not vote on this poll
  • Yes

    137 55.24%
  • No

    111 44.76%
Page 1 of 18 12311 ... LastLast
Results 1 to 10 of 175

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

  1. #1
    Join Date
    Dec 2006
    Location
    Ohio, USA
    Beans
    38

    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:

    Updates:
    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: https://bugs.launchpad.net/ubuntu/+s....2/+bug/225467
    3. 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:
    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: http://www.pulseaudio.org/ticket/285

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

  2. #2
    Join Date
    Jun 2006
    Beans
    263
    Distro
    Ubuntu Development Release

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

    worked perfectly i initially came looking to see if i could fix flash playback, but i ended just following the entire guide and it worked without any flaws/bugs! thanks

  3. #3
    Join Date
    Apr 2008
    Beans
    53
    Distro
    Ubuntu 8.04 Hardy Heron

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

    will 5.1 surround sound work if i follow the exact steps? This is my sound card....Please help...

    Code:
    cat /proc/asound/card0/codec#* | grep Codec
    Output:

    Code:
    Codec: SigmaTel STAC9221 A1

  4. #4
    Join Date
    Dec 2006
    Location
    Ohio, USA
    Beans
    38

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

    I believe some additional steps will be required, these steps give you the default 2 channel setup. If you search the forums some more, I think I may have seen something about getting 5.1 sound to work with Pulse, so you might try that after this. I myself don't have the hardware to test it.

  5. #5
    Join Date
    Jan 2007
    Location
    France
    Beans
    82
    Distro
    Ubuntu

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

    Thanks, but it didn't work for me.

  6. #6
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

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

    Do note that Skype won't work until they change how it interacts with ALSA. There is a workaround which dumbs down pulse, disabling stuff like automatic device detection and volume settings individual to apps. If, like me, you only use Skype for the chat anyway, you can grab the OSS version for the time being, and alter your shortcuts to launch it with padsp. The sound stutters, so your voice chat experience may be mediocre, but stuttering "new message" notifications don't bother me much.

    I downloaded it (Skype OSS), extracted it into /opt/skype.oss, then made a wrapper script and saved it as /usr/local/bin/skype.oss. Off the top of my head:
    Code:
    #!/bin/bash
    
    padsp /opt/skype.oss/skype &
    Code:
    $ sudo chmod +x /usr/local/bin/skype.oss
    http://www.skype.com/go/getskype-linux-oss
    ...

  7. #7
    Join Date
    May 2008
    Beans
    4

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

    Has anyone tried this with Xubuntu?

  8. #8
    Join Date
    Nov 2005
    Location
    Leeds, UK
    Beans
    1,634
    Distro
    Ubuntu Development Release

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

    Cool, seems to work with sdl games (no sound but I can see the stream in pavucontrol). I guess it will work when I restart. Thanks

  9. #9
    Join Date
    Mar 2007
    Beans
    4

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


  10. #10
    Join Date
    Nov 2005
    Location
    Leeds, UK
    Beans
    1,634
    Distro
    Ubuntu Development Release

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

    Thanks for the 5.1 trick!

Page 1 of 18 12311 ... LastLast

Bookmarks

Posting Permissions

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