Firefox, ALSA, Flash, YouTube, Google Video and SOUND!

29 06 2006

This one’s been bugging me for a while. I run Firefox on yawl and hunter pretty constantly, and occasionally would like to view some of the videos posted on YouTube or videos.google.com. While the videos have been playing just fine, sound has never worked.
Sound is always a tricky thing on Linux machines. Although ALSA has solved many of the audio problems that have traditionally plagued Linux boxes, many applications have not ported to the new interface, and therefore won’t work on modern systems.
After finally getting frustrated enough to take the time to do some research, I found a post that described how to do it.
First, for all Debian based distributions, there’s a very handy ‘interface’ package called alsa-oss, which, according to the description:

…contains a program loader, aoss, which wraps applications written for OSS in a compatibility library, thus allowing them to work with ALSA.

Sounds good to me! First, I had to install the package:

apt-get install alsa-oss

Next, a change to Firefox’s configuration to tell it to use said interface:

cd /etc/firefox
edit ‘firefoxrc’ and change
FIREFOX_DSP=”none”
to
FIREFOX_DSP=”aoss”

Stop and restart Firefox.
That’s it! Enjoy videos in full sound and motion like sharks being attacked and eaten by octupi.

Advertisements

Actions

Information

9 responses

29 06 2006
Sandro

My out-of-the-box ubuntu installation has sound for movies working if (and only if) nothing else (like xmms) is using sound at the time that browser window first loads that page. Although firefox can happily play multiple movies at once and mix the sound.

30 06 2006
sah

I have videos on Vimeo. Just sayin’.

30 06 2006
Duncan Hill

Funnily enough, my Kubuntu install has FIREFOX_DSP=”auto”, and sound has always just worked. No extra packages needed.
The best answer for alsa btw, is an old SoundBlaster 32 bit, with a proper hardware mixer. The hardware handles all of the calls for mixing streams, and apps don’t have to lock the dsp.

30 06 2006
ceo

Huh. My Firefox install at work doesn’t have /etc/firefox, and I can’t find a firefoxrc. But it’s a tarball I downloaded from mozilla.com, not a Debian package (getting modern Firefox to work on Debian stable is a maze of twisty little dependencies, all incompatible).
However, this box’s sound issues are not specific to Firefox. :-/

30 06 2006
macewan

Duncan,
From command line type:
locate firefoxrc
and you’ll be presented with:
/etc/mozilla-firefox/mozilla-firefoxrc
/etc/firefox/firefoxrc

19 08 2006
Miki

Great! Works!

21 08 2006
James Stanley

THANK YOU!!!
That is amazing. Thank you a lot for this. That is so simple, I’m surprised I didn’t figure it out for myself, but if I could be bothered I would be in eternal debt to you. That’s helped me a lot. I really appreciate this, thanks.

8 08 2008
eric g

Disable Adblocking and other addons.
Works now for me on Vista.
Adobe must not lie adblocking.

24 10 2008
color code

Adding Sounds – HTML Lessons
HTML MUSIC / MEDIA CODE – Sound
http://html-lesson.blogspot.com/2008/06/music-media-code-sound.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: