From owner-freebsd-multimedia@FreeBSD.ORG Fri Jun 15 02:56:04 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D4DC16A469 for ; Fri, 15 Jun 2007 02:56:04 +0000 (UTC) (envelope-from nullpt@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.226]) by mx1.freebsd.org (Postfix) with ESMTP id 36D2F13C4C3 for ; Fri, 15 Jun 2007 02:56:04 +0000 (UTC) (envelope-from nullpt@gmail.com) Received: by qb-out-0506.google.com with SMTP id b14so770304qbc for ; Thu, 14 Jun 2007 19:56:03 -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:cc:in-reply-to:mime-version:content-type:references; b=oAzZGZ5GD6BD/OHUMXB2AuabJLCxEmpfTz5toeryTmfqls7ylqyzo493zJXqVHh9rskul+0MRRGSnZiORusEjf+1IgSRuI72AxfDuvwYq9g4XF8gqovotHhHGeljU2YfgYOz4L7eYYIPbTOAvtSnYByr0qIyTqA5RP80ZZGFe9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=PAkc2gbeVHhhFVgfp82Os6R1R7cCaON3cmazh6eXdeHkEXQtvP2qcrLBx/Px2lUO4zbSIiIkpU+MwEa8QEIDqNxBgBKrfKjki1rqXHTgu0tyfmrNI/TD0aOJ6SLkQUHcgRiWUy0cquUQu+G3EH/Mb+EWgjTndwBnpQltzDOxC8s= Received: by 10.114.66.2 with SMTP id o2mr2489699waa.1181876163039; Thu, 14 Jun 2007 19:56:03 -0700 (PDT) Received: by 10.115.60.5 with HTTP; Thu, 14 Jun 2007 19:56:03 -0700 (PDT) Message-ID: <755cb9fc0706141956n516f842ciae53e27b43ef6485@mail.gmail.com> Date: Fri, 15 Jun 2007 03:56:03 +0100 From: "Alexandre Vieira" To: "Ariff Abdullah" In-Reply-To: <20070615104116.2277702a.ariff@FreeBSD.org> MIME-Version: 1.0 References: <755cb9fc0706140427g46f8f666ke7a3882ad6f6404f@mail.gmail.com> <20070614200210.448b3665@deskjail> <755cb9fc0706141429y4c5d7724p687ff27e9a29440d@mail.gmail.com> <20070615094403.34630709.ariff@FreeBSD.org> <755cb9fc0706141919l2e765c57q4c1cf4265bbb8b68@mail.gmail.com> <20070615104116.2277702a.ariff@FreeBSD.org> 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: freebsd-multimedia@freebsd.org, Alexander@leidinger.net, freebsd-emulation@freebsd.org Subject: Re: Follow up: Sound in multiple Linux progs X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 02:56:04 -0000 On 6/15/07, Ariff Abdullah wrote: > > On Fri, 15 Jun 2007 03:19:06 +0100 > "Alexandre Vieira" wrote: > > On 6/15/07, Ariff Abdullah wrote: > > > > > > On Thu, 14 Jun 2007 22:29:35 +0100 > > > "Alexandre Vieira" wrote: > > > > 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. > > > > > > > > > > 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. > > > > 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 ........ > > Ariff, Thanks for the tip. Apparently with the binary modules from sndkld_releng6_i386_giant_eradication.tar.gz it works :) Still, tomorrow I'll make the ultimate test to this gaming combination with some freebsd gamers that experience the same problems and will let you know :) Cheers -- Alexandre Vieira - nullpt@gmail.com