On Sat, 20 May 2006, [EMAIL PROTECTED] wrote:

I know that this has been discussed MANY times before, but I wasn't
interested in the question at the time, and I'm not having any luck
in finding the old discussions...

It appears that only ONE program can be inputing sound data to
ALSA at any given time.  Is that true?


Hi-

This is a soundcard limitation, not an ALSA limitation. What you are seeing is the expected behavior for a sound card that only supports one hardware playback channel. Higher-end soundcards remove this limitation.

Note also that on recent versions of ALSA, you will only see this problem with apps using OSS emulation. ALSA-native apps will default to using "dmix", which mixes audio data in userspace before outputting a single stream to the card. OSS emulation is in kernelspace and thus can't participate. You can launch a program with aoss to use a userspace OSS emulation library, which will solve the problem for compatible apps. Just run

aoss xmms

or whatever your app is. (Note that xmms includes native ALSA support).

Hope this helps,
--Quentin

My experiments have always had the second source delayed till
either
   (a) the first source finished playing (but the program was still running)
               (implying that it did an open/close on /dev/dsp)
or (b) until the 2nd program stopped running
               (implying that it opened /dev/dsp and held it open till it
exited)

In either case, it would seem that only one program at a time could have
/dev/dsp open at a time (again is that true?)

And finally (what I was really looking for in the previous postings)
is there any way around this limitation?

Let me apologize in advance for bringing up an old topic.

--
                                       Reg.Clemens
                                       [EMAIL PROTECTED]


Quentin Smith - http://www.comclub.org/~quentins/about
ComClub International - http://www.comclub.org/
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously.

- Benjamin Franklin


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to