Friday, September 15, 2006

 

Firefox, Linux and Audio

Popularity of flash based video distribution sites like YouTube has made Firefox with its flash player an important component of today's desktop. But it is often the case with not-so-new (SuSE 10.0 and earlier) Linux desktops that audio refuses to work. Most common reason for audio not working is when some other process or program has taken control of the sound device, and Flash player can not access it. Fortunately, fixing this problem is easy, provided your system is not too old.

Fix: Firefox is started by a shell script named firefox, usually located in /usr/bin/. This script executes the mozilla firefox binary with appropriate options. To fix the sound problem, you need to start this binary with aoss. This translates to editing /usr/bin/firefox as root, and modifying the line containing

$MOZ_PROGRAM $@

to

aoss $MOZ_PROGRAM $@

Note that these instructions are tested with SuSE 9.3 and 10.0, and some things may vary depending on the distro in use.

Some history: Old linux used oss as its sound interface. OSS is not capable of sound mixing that enables multiple programs to use the sound device simultaneously. KDE's aRts was used on top of OSS for a long time as a temporary solution as aRts provided software mixing. But aRts is buggy, and is not well supported by many non-KDE applications. Finally, OSS was replaced by a new advanced sound interface, ALSA in 2002. ALSA can use hardware capabilities of audio device to mix sound coming from multiple sources, and in case hardware does not support sound mixing, ALSA provides a software implementation of mixer named dmix.

Flash player: Flash is a proprietary software, owned by a commercial organization with sole purpose of making money. It still uses OSS, as porting it to use ALSA would not have created any extra money for Macromedia/Adobe. aoss is a script that can provide OSS emulation to applications requiring OSS, while actually using ALSA. So when Firefox is run with aoss, Flash player uses ALSA in place of OSS. On newer linux distributions (openSUSE 10.1 and later), Firefox is configured by default to use aoss.


Comments:
This comment has been removed by a blog administrator.
 
Hi!..
was surprised to find your blog in during some google search!

good blog!.itne lukke ho kya abhi bhi?..
npatil on the other hand has no traces online-presence whatsoever!(except email)
 
it is better to create file called 'rc' in ~/.mozilla/firefox
and put
FIREFOX_DSP=auto
firefox then chooses automatically what should be used (esd, aoss, or different). works on debian/etch and should also anywhere else. in this way, you don't have to fiddle with the /usr/bin/firefox...
 
Thanks a lot! I've been looking for a solution to this issue since a while!
Problem solved now :)
 
Nilesh, you rock! Note to searchers: this fix is still effective for opensuse 11.1/KDE4, Firefox 3.0.7. I'm using a Tritton Sound Bite (USB) w/ Dell Inspiron 6000.
 
Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa
 
Post a Comment

Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?