On Mon, 11 Mar 2002, Ulrich Zadow wrote:

> > > The output of this piece of code is just "Opening sound 
> > device...". We're pretty sure that we're closing the device 
> > correctly before this happens.
> > > 
> > > Any ideas?
> > 
> > It looks like that another task uses given device (perhaps 
> > some daemon 
> > like arts).
> 
> Is there a way to
>   a) find out who's using it? and/or

fuser -v /dev/snd/pcm*

>   b) tell snd_pcm_open() to return with an error in this case?

Use SND_PCM_NONBLOCK flag for snd_pcm_open().

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project  http://www.alsa-project.org
SuSE Linux    http://www.suse.com


_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to