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

Clemens Ladisch clemens at ladisch.de
Thu Sep 24 03:55:49 EDT 2009


Ismael Valladolid Torres wrote:
> I am running the attached .asoundrc. Works lovely for dmixing multiple
> ALSA applications using the same soundcard.
> 
> What I am not being able to do is adding an OSS application to the
> equation.
> 
> As OSS is not in fact OSS but an OSS emulation that uses ALSA, I
> though that the same rules applied to a demixed ALSA application would
> apply to an OSS application.

ALSA plugins are implemented in userspace, while the OSS interface is
a kernel driver interface and therefore is implemented in the kernel.

To get sound card sharing with application that use the OSS interface,
you can:
- use a sound card with hardware mixing (VIA AC'97 controllers,
  Sound Blaser Live, and some other obsolete chips); or
- use a wrapper that tries to redirect OSS interface calls to a
  userspace emulator (aoss, but it doesn't always work); or
- use a kernel driver that redirects OSS calls to userspace (requires
  kernel 2.6.31 and OSSP, which currently works only with PulseAudio
  and not dmix).


Best regards,
Clemens



More information about the Linux-audio-user mailing list