Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Fix for ALSA API Apps

  1. #1
    Join Date
    Jun 2007
    Beans
    13,326

    Fix for ALSA API Apps

    NOTE: On a fresh install of Lucid (and maybe some older Ubuntu), this should not be necessary. ALSA apps should show in the sound preferences dialog "out of the box" without any extra configuration (like in the screenshot).

    A lot of people seem to be experiencing issues with ALSA apps (like Flash) on PulseAudio-enabled systems. Common issues include programs locking/"hogging" the ALSA sound device (prevents other apps from mixing and using the audio device) and also apps trying to use the ALSA software mixer (dmix).
    Here is a method to route ALSA apps directly through pulse:
    Code:
    gksu gedit /etc/asound.conf
    Copy/paste these lines into the resulting file:
    Code:
    pcm.pulse { type pulse }
    ctl.pulse { type pulse }
    pcm.!default { type pulse }
    ctl.!default { type pulse }
    Save. Quit. Reboot.
    If it worked, you should now see ALSA apps in the volume control/preferences
    Attached Images Attached Images
    Last edited by Temüjin; July 25th, 2010 at 09:10 PM.
    What would happen if your disk died right now?

  2. #2
    Join Date
    Jan 2006
    Beans
    325

    Re: Fix for ALSA API Apps

    Quote Originally Posted by Temüjin View Post
    A lot of people seem to be experiencing issues with ALSA apps (like Flash) on PulseAudio-enabled systems. Common issues include programs locking/"hogging" the ALSA sound device (prevents other apps from mixing and using the audio device) and also apps trying to use the ALSA software mixer (dmix).
    Here is a method to route ALSA apps directly through pulse:
    Code:
    gksu gedit /etc/asound.conf
    Copy/paste these lines into the resulting file:
    Code:
    pcm.pulse { type pulse }
    ctl.pulse { type pulse }
    pcm.!default { type pulse }
    ctl.!default { type pulse }
    Save. Quit. Reboot.
    My file already contains that, but still no sound in flash

    Any other ideas?

    Max.

  3. #3
    Join Date
    Jan 2008
    Beans
    7

    Re: Fix for ALSA API Apps

    Thank you very much, this should be delivered by default

    After change every prefer device to pulse in kde system settings
    and also gstreamer-properties, all apps working except flash that lock the device, and your solution get this issue done

  4. #4
    Join Date
    Jun 2007
    Beans
    13,326

    Re: Fix for ALSA API Apps

    this should be delivered by default
    AFAICT, it is the default in fresh installs of Ubuntu 10.04 (at least it was in my Lucid virtualbox install).
    What would happen if your disk died right now?

  5. #5
    Join Date
    Jun 2007
    Beans
    13,326

    Re: Fix for ALSA API Apps

    EDIT: Oops, double post
    What would happen if your disk died right now?

  6. #6
    Join Date
    Jul 2008
    Beans
    62

    Re: Fix for ALSA API Apps

    It didn't work for me. Audio keeps being OK everywhere except in Firefox.

    Ciao,
    Max

  7. #7
    Join Date
    Apr 2009
    Beans
    33

    Re: Fix for ALSA API Apps

    Also not working for me. Flash still uses ALSA, as it does not appear in the applications using sound in the pulseaudio configuration, nor does it play sound when another application is doing so.

    Edit: I have made it work. (I am teh happy!) I put the code into into ~/.asoundrc
    Code:
    pcm.pulse { type pulse }
    ctl.pulse { type pulse }
    pcm.!default { type pulse }
    ctl.!default { type pulse }
    It is still in /etc/asound.conf, but that didn't work before so I am assuming it needed to be in ~/.asoundrc
    Last edited by Vectorferret; June 10th, 2010 at 03:57 AM.

  8. #8
    Join Date
    Jul 2010
    Beans
    114

    Re: Fix for ALSA API Apps

    I'm having the same problem. Ever since I installed a codec to play a MP3 that I downloaded from Amazon.com yesterday, I get no audio in Firefox when I play YouTube videos.

    But I can't do this because I don't know how to type a "pulse." What does that even mean?

    EDIT:

    Okay, I assumed that the { type pulse } is a comment for what those commands are doing, and created this file. It works! Yay! I can listen to my MP3 and YouTube videos. Thanks!

    But for the sake of us n00bs, you should make it clearer that {type pulse} doesn't mean you need to literally type a "pulse" into the file after each of those commands...
    Last edited by Bernie Gallagher; July 5th, 2010 at 04:12 PM.

  9. #9
    Join Date
    Jul 2010
    Beans
    114

    Re: Fix for ALSA API Apps

    Wow! Linux is so cool! I don't need a gajillion different media players to play all my videos! The one player that came with Ubuntu (after downloading the necessary codecs) plays my MP3s, my MOVs, my FLVs, and even plays my ancient AVIs that Windoze stopped being able to play after I upgraded from Win 95 to XP...

  10. #10
    Join Date
    Dec 2009
    Location
    Bayamon, PR
    Beans
    Hidden!

    Re: Fix for ALSA API Apps

    I used this a few months ago when Flash would hijack my sound.
    It worked perfectly for me. Hope it helps other people too..

Page 1 of 2 12 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
  •