LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2008, 07:47 PM   #1
Tordne
Member
 
Registered: Mar 2008
Location: London,UK
Distribution: Ubuntu
Posts: 37

Rep: Reputation: 15
Firefox blocks sound...


I play some music from a website, and afterwards I want to play some music with mplayer but then he gives me the message >> /dev/dsp is still in use...

when i totaly quit FireFox, I can play music again, but then I loose all my tabs and all the sites that were open...

I searched for a process that occupied /dev/dsp but I didn't find it... can someone help me???

Thx...
 
Old 03-12-2008, 08:24 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
/dev/dsp is the audio device provided by the OSS sound drivers. OSS driver usage is usually limited to one program at a time,. If the sound card is in use by another application (even if that application uses a different sound driver, like the ALSA drivers), newly started audio playing programs will not be able to use the sound card.

OSS is deprecated in the Linux kernel - modern programs should use the ALSA drivers, which allow sharing the sound card between multiple apps. However, OSS is often provided for backwards compatibility with programs which were written before ALSA became popular.

How to fix it? All applications which give you a choice of sound driver should be set to use ALSA. Many apps provide this option (e.g. audacity, xmms, skype), although they may default to OSS... change these settings.

If you have an application which only supports OSS drivers, you might be able to use a program called aoss to emulate the OSS drivers, but actually use ALSA drivers, and so play nice with other ALSA apps. I use this method to run RealPlayer, which only supports OSS drivers. aoss is not 100% reliable, but with recent versions of ALSA it seems to work for most programs. To use aoss, just prefix the running of the program with aoss.. e.g. if you usually run RealPlayer like this:
Code:
realplay http://somesite.com/somemedia.ram
...then you would run it like this:
Code:
aoss realplay http://somesite.com/somemedia.ram
Of course, you need aoss installed. On Ubuntu it is part of the alsa-oss package.
 
Old 03-12-2008, 08:34 PM   #3
Tordne
Member
 
Registered: Mar 2008
Location: London,UK
Distribution: Ubuntu
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the solution,...
I'll try to fix it and let everything use alsa...
 
Old 03-12-2008, 09:10 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
If it's firefox doing the blocking, it might be because you have version 7 of flashplayer, which used OSS. flash 9 uses ALSA, so if you have flash 7, consider upgrading.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE blocks sound? cant play sound from other programs. Smurfen Linux - Hardware 1 04-02-2005 07:14 PM
No sound in Firefox - but sound in KDE icpsvt Linux - General 19 03-06-2005 06:26 PM
Application using sound, blocks access to soundcard for other applications?? Erik Plaggenmar Linux - Software 1 01-27-2005 11:05 AM
ZoneAlarm blocks Firefox but not Outlook Express (dialup) lrt2003 General 3 12-14-2004 12:25 AM
no sound in firefox Teckno Linux - Software 0 07-09-2004 02:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration