[LAU] Play ALSA and OSS emulation simultaneously on same soudcard, is it posible?

Fons Adriaensen fons at kokkinizita.net
Wed Sep 23 19:41:30 EDT 2009


On Thu, Sep 24, 2009 at 06:33:36AM +0800, Ray Rashif wrote:

> Unfortunately, no. OSS is greedy, and thus needs to grab the device. It has
> vmix as something like dmix, but that only works in an OSS-only environment.

If you read the ALSA docs, in particular where they
describe how you can construct new devices on top of
existing ones, they surely give the impression that
arbitrary networks such as


hw:0 ---- dmix -------- app               |---- app  
                  |                       |     
                  |---- plug ---- dmix -------- app  
                  |
                  |---- oss  ---- app


where 'plug' - a misnomer - is the thing that resamples
changes format etc. and oss does the same along with 
providing a different API, should work.

But they don't, and it's not difficult to see that
it would be hell to make them work. IMHO, the basic
approach is wrong.

I know that oss emulation is not implemented as 
suggested by this example, but even if it were 
I doubt very much if it could be made to work.


Ciao,

-- 
FA

Io lo dico sempre: l'Italia è troppo stretta e lunga.




More information about the Linux-audio-user mailing list