[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sound Alerts



On Mon, Sep 04, 2000 at 06:00:42PM +0000, Subba Rao wrote:
> Now, when I tried to set off 3 alerts at the sametime, I get the following
> message,
> 
> sox: Can't open output file '/dev/dsp': Device or resource busy

OSS is a simple system. Only one process can open /dev/dsp at any
time. So if one process sounds the alarm and you run sox again
(Trying to open /dev/dsp again) you will get the error 'resource
busy'.

What you can do, is have one master process control /dev/dsp, and
other processes asking the master to sound the alarm for them. The
master can either queue or mix the sounds. I believe ESD
(Enlightened Sound Daemon, aka ESounD) can mix several sources but
it doesn't provide an OSS interface - you have to use a special
library.

You might also want to check out ALSA (Advanced Linux Sound Arch. -
a replacement for the OSS drivers.) ALSA is supposed to let several
users open the sound device at the same time but I'm not familiar
with it.

Better yet, just ignore the error message and go check the machine
when it sounds the alarm :)  

-- 
Nimrod.
http://www.geocities.com/rodd_27

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il