how to allow multiple users concurrent access to the sound card under linux
I've been using fedora core 2 on a desktop shared by my family at home. In order to make it easy to use, I've set it up so that multiple X servers are running on vt7, vt8, etc. This is because AFAIK there's no functionality in GNOME that allows users to switch desktops without logging out as windoze allows. So, I take the memory hit and run multiple X servers. I've had great sound support under ALSA and my Creative Soundblaster card. I tested their capabilities by opening four audio streams at once and they were all mixed and sounded right. The problem I have is that multiple users cannot access the sound card at once. It appears that once one user logs into his X server (or runs an application that accesses /dev/dsp?) he takes control of the sound card and other users cannot access it.
I would like it so that I can switch between the multiple X servers and that control of the sound card can either be handed off between users or, best-case scenario, mixed with ongoing open sound streams. Right now, I have to log off the user who logged in first to relinquish control of the sound card and login again with the other user to hand control over. Any hacks or configuration information on how to set this up would be appreciated.
|