From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 31 17:02:12 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EA0016A4CE for ; Wed, 31 Mar 2004 17:02:12 -0800 (PST) Received: from kayjay.xs4all.nl (kayjay.xs4all.nl [80.126.33.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4E4643D3F for ; Wed, 31 Mar 2004 17:02:11 -0800 (PST) (envelope-from karelj@kayjay.xs4all.nl) Received: from kayjay.xs4all.nl (localhost.wop.wtb.tue.nl [127.0.0.1]) by kayjay.xs4all.nl (8.12.11/8.12.11) with ESMTP id i31121M2087884; Thu, 1 Apr 2004 03:02:01 +0200 (CEST) (envelope-from karelj@kayjay.xs4all.nl) Received: (from karelj@localhost) by kayjay.xs4all.nl (8.12.11/8.12.11/Submit) id i31120Ss087883; Thu, 1 Apr 2004 03:02:00 +0200 (CEST) (envelope-from karelj) Date: Thu, 1 Apr 2004 03:01:59 +0200 From: "Karel J. Bosschaart" To: Mathew Kanner Message-ID: <20040401010159.GA87719@kayjay.xs4all.nl> References: <20040331171848.GA86712@kayjay.xs4all.nl> <20040331174206.GE6187@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040331174206.GE6187@cnd.mcgill.ca> User-Agent: Mutt/1.4.2.1i cc: freebsd-multimedia@freebsd.org Subject: Re: UT2004 sound problem X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2004 01:02:12 -0000 On Wed, Mar 31, 2004 at 12:42:06PM -0500, Mathew Kanner wrote: > On Mar 31, Karel J. Bosschaart wrote: > > Hi, > > > > Got my UT2004 DVD yesterday :-), but I have a problem with the sound: > > it plays too slow, which makes the game unplayable. This is on -stable > > (as of today). Relevant messages (other lines omitted) from UT2004: > > > > fcntl: No such device or address > > ioctl SETFRAGMENT: Invalid argument > > > > native_blitbuffer: select error occured > > > > > > the last message occurs when exiting UT2004. The process ut2004-bin > > is stuck in 'pcmsyn' state and I have to kill it. > > > > In -current (same machine) sound is OK, and I only get the 'fcntl' message. > > > > The sound in both UT2003 and UT2004 demo is working well on -stable. > > Things I tried: > > > > - using my second sound card: same problem. > > - copying openal.so from UT2003 and UT2004 demo to UT2004: no error > > messages anymore, but also no sound. > > - this obscure sequence makes the sound work properly: > > 1. reboot machine > > 2. start UT2004 demo, and quit after watching the intro > > 3. start UT2004. Now the sound is OK... > > > > Since the game has the tendency to crash quite often (once in 2 hours or > > so), I have to do this all over again because I found no other way to > > get the sound right after the game crashed. > > > > I'm going to try the OSS commercial driver (it helped me often with > > sound problems in Linux games) but I prefer to use the pcm driver. > > > I notice that you don't mention the sound card type. Also, I Thanks for the quick reply! My sound devices: pcm0: at io 0xa400 irq 10 (1p/1r/0v channels duplex default) pcm1: at io 0xa000 irq 9 (1p/1r/0v channels duplex) Both sound cards have the same problem. > would suggest that you play with enabling, disabling vchans and see if I tried sysctl hw.snd.pcm0.vchans=4 sysctl hw.snd.maxautovchans=4 but it doesn't help. I'm getting a bunch of extra native_blitbuffer: select error occured > it helps. After that, you can try some patches that are floating > around that limit the fragment size. Could you provide a pointer to those patches? I googled around for a while but didn't find anything relevant. Also, I tried the following http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/sound/pcm/dsp.c?rev=1.64&content-type=text/x-cvsweb-markup in dsp.c of -stable. Although the 'ioctl SETFRAGMENT: Invalid argument' does not appear anymore, the sound is still messed up. Even worse, the trick with first starting the demo doesn't work anymore, so I reverted back to the original dsp.c . Karel.