Sound card in use?

George Toft plug-discuss@lists.plug.phoenix.az.us
Fri, 19 Apr 2002 14:31:51 -0400


Looks like the solution is to run esd, change xmms to use the esd library,
then I can play sounds via "escctl play <name>" and it will mix it for me.

That works.  Thanks for the tip.

George


"David A. Sinck" wrote:
> 
> \_ SMTP quoth George Toft on 4/19/2002 08:55 as having spake thusly:
> \_
> \_ How can I tell if an application is using the sound card?  I'm writing
> \_ a script that needs to play a sound, but only if the sound card is not
> \_ currently being used.  What I'm doing right now is:
> \_
> \_      IN_USE=`lsof | grep dsp`
> \_
> \_ Which works, but I know lsof can impose a performance hit.  Any ideas?
> 
> See if there's a cautionary file lock on /dev/dsp?  I don't remember
> if I was getting file-lock errors or perm errors when I 'fixed' this.
> 
> If the box is running esd, you *might* be able to grok the output of
> esdctl serverinfo or esdctl allinfo into something meaningful?
> 
> Good question.
> 
> David
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail.
> 
> PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss