From owner-freebsd-emulation@FreeBSD.ORG Thu Jun 14 21:29:37 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 621C716A469 for ; Thu, 14 Jun 2007 21:29:37 +0000 (UTC) (envelope-from nullpt@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by mx1.freebsd.org (Postfix) with ESMTP id 0C2E313C46C for ; Thu, 14 Jun 2007 21:29:36 +0000 (UTC) (envelope-from nullpt@gmail.com) Received: by nz-out-0506.google.com with SMTP id 14so629769nzn for ; Thu, 14 Jun 2007 14:29:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=YD/VekCYswykZK3oix673+LybyvdhyAfuQTpt1qXh9XHkmc3YGSlRmVoKGWNUG8iShHb56IId6b25091/bXvdCsKshQHLHlTjNR75rKOo+w1pz8wLOeftDwWYNmI+NEDaBk27WhytURuAVsOV87Hae/FVSJsPQREpU40DqUGVHo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=usE+MRmRHy6caIS0fJMeqL5AmQOkkIxrwSK5gvemIoeNpGD+alRToaFB+VirogSCvPWSBlmx6isCjgGVS0el1aTzKTsdBcJDfbYm7GLhaoXvXjHdBOMfSTxflgW5myZIMlL2+JSY29v8tStiAsjBTHuNp8kXoYPqbdWvh7uDWsw= Received: by 10.115.54.1 with SMTP id g1mr2206428wak.1181856575995; Thu, 14 Jun 2007 14:29:35 -0700 (PDT) Received: by 10.114.240.18 with HTTP; Thu, 14 Jun 2007 14:29:35 -0700 (PDT) Message-ID: <755cb9fc0706141429y4c5d7724p687ff27e9a29440d@mail.gmail.com> Date: Thu, 14 Jun 2007 22:29:35 +0100 From: "Alexandre Vieira" To: "Alexander Leidinger" , freebsd-multimedia@freebsd.org, freebsd-emulation@freebsd.org In-Reply-To: <20070614200210.448b3665@deskjail> MIME-Version: 1.0 References: <755cb9fc0706140427g46f8f666ke7a3882ad6f6404f@mail.gmail.com> <20070614200210.448b3665@deskjail> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Follow up: Sound in multiple Linux progs X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2007 21:29:37 -0000 On 6/14/07, Alexander Leidinger wrote: > > Quoting "Alexandre Vieira" (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@gmail.com