Follow up: Sound in multiple Linux progs

Alexandre Vieira nullpt at gmail.com
Thu Jun 14 21:29:37 UTC 2007


On 6/14/07, Alexander Leidinger <Alexander at leidinger.net> wrote:
>
> Quoting "Alexandre Vieira" <nullpt at gmail.com> (Thu, 14 Jun 2007 12:27:41
> +0100):
>
> > Hello,
> >
> > This is a followup of thread:
> >
> http://lists.freebsd.org/pipermail/freebsd-emulation/2006-June/002177.html
> >
> > For several years i've been using freebsd to play many FPS kind of games
> > (RTCW, Enemy Territory, Quakes, etc..) and I always have the same
> problem
> > with Linux programs running under binary compatibility and /dev/dsp.
> Virtual
> > channels won't work, whenever a launch a linux program that uses
> /dev/dsp*
> > any other linux program won't be able to open the device for read or
> write.
> >
> > I wonder if there is any workaround/fix on this matter. My workaround is
> > always to have 2 sound cards on the machine so I can use for example
> > TeamSpeak and Enemy Territory. Each program will use a different dsp
> device
> > and it works.
>
> Enable vchans instead:
>
> % sysctl -a | grep vchan
> hw.snd.maxautovchans: 16
>
> Bye,
> Alexander.
>
> --
> http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
> http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
>

Alexander,

As I said in the initial post, vchans don't have any effect. As far as my
technical knowledge about freebsd and the linux emulation I'm pretty sure
that if you have a linux application that is using /dev/dsp* any other linux
application won't be able to use /dev/dsp*.

If you have a freebsd native application using a /dev/dsp* then a linux
application is able to use it if I have virtual channels left, and vice
versa.

Cheers
-- 
Alexandre Vieira - nullpt at gmail.com


More information about the freebsd-emulation mailing list