Visit Our UNIX and Linux User Community


Sound Device


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Sound Device
# 1  
Old 01-13-2011
Sound Device

hi all

i have a problem that if i use something like firefox it will grab the sound device and not release it, so i can not use skype

is there a command to see what is using the audio device

i am using Fedora

thaks
Adam
# 2  
Old 01-13-2011
You can install lsof which will list everything that has open files and sockets on your system. look for things that have /dev/sound/ or /dev/dsp or things like that.

One odd thing I've discovered with firefox and flash is that programs it launches also inherit an open sound device! if firefox is hogging the sound device, and firefox launches xpdf, and you close firefox completely, xpdf will still hog it! It is very bizarre.

If you can turn off OSS emulation completely and use alsa exclusively, hogging shouldn't be a problem. I don't know exactly how to do this in fedora though.
# 3  
Old 01-18-2011
Quote:
Originally Posted by Corona688
One odd thing I've discovered with firefox and flash is that programs it launches also inherit an open sound device! if firefox is hogging the sound device, and firefox launches xpdf, and you close firefox completely, xpdf will still hog it! It is very bizarre.
It's not too strange if you think about how open file handles interact with fork/exec... Basically when you fork a process, the new process normally inherits all the file descriptors of the first process - and the file descriptors stay open when you call exec(), too. There are ways around this (flagging a file descriptor "close on exec", or explicitly closing the file after a fork()) - I guess firefox just hasn't implemented them, or something...
# 4  
Old 01-18-2011
Quote:
Originally Posted by tetsujin
It's not too strange if you think about how open file handles interact with fork/exec...
Yep, I know how it works. I'm just stunned the sound device was left inheritable... Probably Flash's responsibility.

Previous Thread | Next Thread
Test Your Knowledge in Computers #516
Difficulty: Easy
Programming languages only support a single data type in order to insure faster execution.
True or False?

5 More Discussions You Might Find Interesting

1. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

2. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

3. Hardware

No sound device in Solaris 11 running in Parallels (MacBook Pro)

I'm new to Solaris. I was able to installed Solaris 11 running GNOME. I tried to detect sound/audio but the message given that "No volume control GStreamer plugins and/or devices found". There is no dev/audio but there are audio drivers such as gstreamer installed when I checked using Solaris... (0 Replies)
Discussion started by: Abang Annuar
0 Replies

4. Slackware

X terminal: Redirecting remote sound to my local audio device

Hello everybody, I'm testing some aspects of X Terminal implementation and it's going great. I can use remote applications on my local slow workstation at remote's processor speed by redirecting the remote DISPLAY variable to "my_local_ip:0.0"; but i'm having troubles to get remote audio and... (2 Replies)
Discussion started by: semash!
2 Replies

5. Linux

Non exclusive sound device access!!

Hi, I was wondering if any of you guys know of way to make applications that use sound device on linux to access it in a "non-exclusive manner", the aim is to be able to use more than one application that requires the sound device. Thanks (0 Replies)
Discussion started by: andryk
0 Replies

Featured Tech Videos