Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2007 10:41:16 +0800
From:      Ariff Abdullah <ariff@FreeBSD.org>
To:        "Alexandre Vieira" <nullpt@gmail.com>
Cc:        freebsd-multimedia@freebsd.org, Alexander@leidinger.net, freebsd-emulation@freebsd.org
Subject:   Re: Follow up: Sound in multiple Linux progs
Message-ID:  <20070615104116.2277702a.ariff@FreeBSD.org>
In-Reply-To: <755cb9fc0706141919l2e765c57q4c1cf4265bbb8b68@mail.gmail.com>
References:  <755cb9fc0706140427g46f8f666ke7a3882ad6f6404f@mail.gmail.com> <20070614200210.448b3665@deskjail> <755cb9fc0706141429y4c5d7724p687ff27e9a29440d@mail.gmail.com> <20070615094403.34630709.ariff@FreeBSD.org> <755cb9fc0706141919l2e765c57q4c1cf4265bbb8b68@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Fri__15_Jun_2007_10_41_16_+0800_MnXOQ.bkPWuIF=Kt
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, 15 Jun 2007 03:19:06 +0100
"Alexandre Vieira" <nullpt@gmail.com> wrote:
> On 6/15/07, Ariff Abdullah <ariff@freebsd.org> wrote:
> >
> > On Thu, 14 Jun 2007 22:29:35 +0100
> > "Alexandre Vieira" <nullpt@gmail.com> wrote:
> > > On 6/14/07, Alexander Leidinger <Alexander@leidinger.net> wrote:
> > > >
> > > > Quoting "Alexandre Vieira" <nullpt@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.h=
tml
> > > > >
> > > > > 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 =3D
> > > > B0063FE7 http://www.FreeBSD.org     netchild @ FreeBSD.org  :
> > > > PGP ID =3D 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.
> > >
> >
> > Let me guess, is this on 6.x?
> >
> Sorry not to mention. Yes it's 6.2-STABLE from 26 May. But let me
> add that since 5.2.1 it works the same way.
>=20

I think I know why, but first, try using binary modules or
applying patch from http://people.freebsd.org/~ariff/ .


--
Ariff Abdullah
FreeBSD

... Recording in stereo is obviously too advanced
    and confusing for us idiot ***** users :P ........

--Signature=_Fri__15_Jun_2007_10_41_16_+0800_MnXOQ.bkPWuIF=Kt
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGcfxMlr+deMUwTNoRAgGeAKCXP1xloGSVXr/nmelKAvDY2eJjSwCfcxuM
b98gaWs8lA0HgDlIO+vJgvc=
=MzeL
-----END PGP SIGNATURE-----

--Signature=_Fri__15_Jun_2007_10_41_16_+0800_MnXOQ.bkPWuIF=Kt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070615104116.2277702a.ariff>