Hi, I found the reason, and how to solve it... The thing is, that everytime something with Alsa/oss try to use it without freeing the device after it finish using it, I can not access the device. I found that if I'm able kill/close the connection I need to wait until the system free the resource properly, and then I can use it.
On 9/30/07, Alex Shnitman <[EMAIL PROTECTED]> wrote: > Hi, > > I'm assuming that you're trying to open /dev/dsp more than once at the same > time. Some sound chips allow that -- they will let you open more than one > channel at the same time and mix the streams in hardware. Others don't > support this. For that there's the "dmix" alsa plugin which will do the > mixing in software. Check out > http://alsa.opensrc.org/home/w/org/opensrc/alsa/index.php?title=DmixPlugin > for instructions on how to use it. Thanks, I'll take a look at this. > > --Alex Thank you, Ido > > > ----- Original Message ---- > From: ik <[EMAIL PROTECTED]> > To: [email protected] > Sent: Friday, September 28, 2007 6:25:40 PM > Subject: Audio development and /dev/dsp > > Hello list, > > I have a weird problem when I'm trying to use /dev/dsp using Alsa-oss. > The first time I'm accessing /dev/dsp, the device works properly, and > I have sound inside, however, when I try to access the device again, > I'm getting > > sox: Can't open output file '/dev/dsp': Device or resource busy > > For example from the command "play" that uses that device. > > Please note that his happens regardless of the program that uses the > /dev/dsp device. > > I also tried to use /dev/snd/pcm.... but without any luck (no error > from using the descriptor, but no actual output is given. > > I can't figure out what am I missing. And I do need to use the > /dev/dsp (for several reasons that are not controlled by me). > > I'm using Kubnut 7.04 amd64. > > Any pointers to look at well be more then welcome. > > Thanks, > Ido -- http://ik.homelinux.org/ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
