Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Sound conflict between Firefox Flash and the rest of the system.

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

    Re: Sound conflict between Firefox Flash and the rest of the system.

    Quote Originally Posted by VertexPusher View Post
    Make sure that flashplugin-nonfree-extrasound is NOT installed. That package contains a library "libflashsupport.so" which makes Flash use OSS instead of ALSA. OSS does not support shared sound card access, so this may be the cause of your problem.
    so, is there a way to make flash use alsa to see if that resolves the conflict??

  2. #12
    Join Date
    Sep 2009
    Beans
    6

    Re: Sound conflict between Firefox Flash and the rest of the system.

    Quote Originally Posted by sleepee View Post
    i have the exact same problem.
    but it happened to me right after i upgraded alsa to version 1.0.22.1.
    but i had also upgraded flash at the same time.. so i'm not sure which one is to blame here..

    but l-x-l's workaround works for me. if i make vlc use alsa, it'll play sound even with a flash video in firefox.

    I've found a fix. Details follow:

    1. I purged my system of pulseaudio and alsa
    sudo apt-get remove --purge alsabase
    sudo apt-get remove --purge pulseaudio

    (There may be a hyphen in alsabase i.e. alsa-base I don't remember)

    2. Next I did a fresh install of alsa FROM SOURCE NOT THE REPOSITORY.
    I used the latest version (1.0.22 at the time of this writing). You'll need to download the compressed files into /usr/src/alsa. To do this open up a terminal:

    cd /usr/src/alsa

    if the folder doesn't exist:

    cd /usr/src
    sudo mkdir alsa
    cd alsa

    You can always find the latest version of alsa here:

    http://www.alsa-project.org/main/index.php/Download

    Assuming the latest version is 1.0.22 then use the following commands to download drivers, libs, utils, and tools.

    sudo wget ftp://ftp.alsa-project.org/pub/drive...0.22.1.tar.bz2
    sudo wget ftp://ftp.alsa-project.org/pub/lib/a...1.0.22.tar.bz2
    sudo wget ftp://ftp.alsa-project.org/pub/utils...1.0.22.tar.bz2
    sudo wget ftp://ftp.alsa-project.org/pub/tools...1.0.22.tar.bz2

    3. Next unpackage the files. This is how I prefer to do it:

    gksudo nautilus /usr/src/alsa

    When the new window opens right click on each file and click on 'Extract here'

    4. Now install everything:

    cd alsa-driver-1.0.22.1
    sudo ./configure
    sudo make
    sudo make install

    Now cd into each of the other folders and do the same thing:
    sudo ./configure
    sudo make
    sudo make install


    5. Then run alsaconf to configure your sound card:

    sudo alsaconf

    It will detect your sound card. Follow the on screen instructions.

    6. Now we need to adjust /etc/modules.conf:

    gksudo gedit /etc/modules.conf

    Edit the file to remove the 'snd_' prefix from all module names (theres a script in the alsa-driver source package under 'utils' called 'module-options' which does this for you I just couldn't get it to work)

    7. Reboot

    8. Finally, initialize your sound card:

    sudo alsactl init

    Everything should be working at this point. You should be able to run sound on Firefox, rhythmbox, and any other program simultaneously. Make sure to change the sound settings on your other apps (virtualbox, skype, etc) to use 'Default Device' or 'ALSA Driver'

    9. So that your sound card is initialized upon boot-up you can go to:

    System->Preferences->Startup Applications

    Click on Add, give any name or comment you want, but the command should read:

    alsactl init


    10. Enjoy!

    Notice pulseaudio is no longer on your system. I haven't tried to reinstall it because ALSA comes with its own mixer which works perfectly fine. You can add alsamixergui to your panels to have quick access to volume control.

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

    Re: Sound conflict between Firefox Flash and the rest of the system.

    wow.. that seems like somewhat of a long process..
    i know i'm definitely going to need some time to do all that..

    anyway, i'm scared of taking out pulse audio though.. i wish there was a way to just make flash use pulseaudio or just not hog the sound for itself. there's got to be a way... i hope..

  4. #14
    Join Date
    Sep 2009
    Beans
    6

    Re: Sound conflict between Firefox Flash and the rest of the system.

    You're right it does look like quite a bit of work, but in essence its quite simple:
    you uninstall your old version of alsa and replace it with the latest version available and then you configure your sound card.

    But if you've found a work around I wouldn't bother.

    Also, I think there's a common misconception that pulseaudio is an integral part of the system but it's really not.

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

    Re: Sound conflict between Firefox Flash and the rest of the system.

    Quote Originally Posted by jintachi View Post
    You're right it does look like quite a bit of work, but in essence its quite simple:
    you uninstall your old version of alsa and replace it with the latest version available and then you configure your sound card.

    But if you've found a work around I wouldn't bother.

    Also, I think there's a common misconception that pulseaudio is an integral part of the system but it's really not.
    hmm.. i guess i could give it a shot and let you all know if it works for me.
    but i've already upgraded alsa v1.0.22.1
    so i could just remove pulseaudio and should get the same result right?

  6. #16
    Join Date
    Aug 2008
    Beans
    63
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Sound conflict between Firefox Flash and the rest of the system.

    I have flash10 now and had the same problem.

    I uninstalled libflashsupport and it all works now. Wine also works and i can now play several things at the same time. Not sure what else i've broken as a result.

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

    Re: Sound conflict between Firefox Flash and the rest of the system.

    hey all, i found out how to fix this.. at least this worked for me.
    check out my thread

    http://ubuntuforums.org/showthread.php?t=1412153

    it basically forces Flash use PA.. Flash was basically hogging all the sound for itsellf, bypassing PulseAudio..and if another program was already using PA for sound, Flash would be stubborn and not play any sound at all... it was like all or nothing for flash

    but instead of taking out PA altogether, or using OSS, i made Flash play nice with PulseAudio and now everything works fine..

Page 2 of 2 FirstFirst 12

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
  •