From owner-freebsd-multimedia Thu Sep 27 14:29:36 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from asmodean-ssn.nks.net (asmodean.nks.net [216.139.201.16]) by hub.freebsd.org (Postfix) with ESMTP id 2DB9F37B408 for ; Thu, 27 Sep 2001 14:29:34 -0700 (PDT) Received: from localhost (joeo@localhost) by asmodean-ssn.nks.net (8.9.3/8.9.3) with ESMTP id RAA12889 for ; Thu, 27 Sep 2001 17:29:33 -0400 Date: Thu, 27 Sep 2001 17:29:33 -0400 (EDT) From: X-Sender: To: Subject: stable pcm problem with some linux games errs apps Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org A few of the games from Loki use the OpenAL libs to drive sound. PCM on my 4.4-RC4 box is displaying a long standing (I've kindof ignored it for the last year) problem that games like UT and Tribes2 of noticable lag in sound compared to what is seen on a linux box. The lag is much less noticable if I use the 4-front tech OSS driver. Setting up some debugging reveals that both these games do a ioctl DSP_SETFRAGMENT requesting only 1 DMA block. Here's what UT requests; SNDCTL_DSP_SETFRAGMENT 0x0001000b SNDCTL_DSP_SETFRAGMENT 1 frags, 2048 sz SNDCTL_DSP_SETFRAGMENT 0x0001000c SNDCTL_DSP_SETFRAGMENT 1 frags, 4096 sz I was hoping that the workaround for would be a simple kluge, but chn_setblocksize(...) in /sys/dev/sound/pcm/channel.c has some additional logic in it that sets the blkcnt much higher... Any ideas? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message