|
From: Aivils S. <ai...@un...> - 2005-09-05 10:32:13
|
On Otrdiena, 9. Augusts 2005 03:04, ludovic pollet wrote: > Hello, > > I adressed the sound card issue with multiple X display. > > It is a little filesystem for fuse (http://fuse.sourceforge.net/). > Basically, it provides a symlink which depends on the DISPLAY environment > variable. > > When a process will open /dev/dsp, the symlink will resolve depending on > the DISPLAY variable of the process. From there, it is easy to make process > on first display open the first dsp, and so on... > > This should works for any program using OSS (this covers most unfriendly > ones, like Mozilla plugin, OpenOffice or vmware, ...), or ALSA in emulation > mode (for native mode, alsalib is our friend :-). > > Source and binary are available at http://www.nnx.com/~pludov/sessiond/ > It should work out of the box for Fedora core 3, (with fuse installed)... > > Any feedback is welcome ! That runs very nice under Mandriva 2005LE, 2.4.31-bruby , fuse-2.3.0, 3 sound cards 2 of them is oss and 1 is alsa. However games use /dev/sound/dsp. I add additional script in /etc/profile.d , which set up SDL and OpenAL sound libraries. sound.sh #SDL SDL_PATH_DSP="/dev/dsp" #SDL_AUDIODRIVER="oss" export SDL_PATH_DSP #OpenAL echo '(define lin-dsp-path "/dev/dsp")' > $HOME/.openalrc sessiond startup scrip deletes /dev/dsp* stuff and creates links from /dev/sound/* , /dev/dsp* to /var/sessions/* . devfs is in use. Aivils Stoss |