From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 16 16:46:52 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 6DBEA16A4CE for ; Tue, 16 Nov 2004 16:46:52 +0000 (GMT) Received: from thekla.de.clara.net (thekla.de.clara.net [212.82.225.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9734143D41 for ; Tue, 16 Nov 2004 16:46:51 +0000 (GMT) (envelope-from michael.riexinger@de.clara.net) Received: from localhost.de.clara.net ([127.0.0.1] helo=localhost) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CU6Ti-000BW0-Bm; Tue, 16 Nov 2004 17:46:50 +0100 Received: from box.int.de.clara.net ([192.168.0.226]) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CU6Ti-000BVi-6t; Tue, 16 Nov 2004 17:46:50 +0100 From: Michael Riexinger To: freebsd-multimedia@freebsd.org Date: Tue, 16 Nov 2004 17:46:54 +0100 User-Agent: KMail/1.7 References: <20041116163427.GA62374@megan.kiwi-computer.com> In-Reply-To: <20041116163427.GA62374@megan.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411161746.55437.michael.riexinger@de.clara.net> cc: "Rick C. Petty" Subject: Re: XMMS & other sound troubles with 5.3-RELEASE 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: Tue, 16 Nov 2004 16:46:52 -0000 On Tuesday 16 November 2004 17:34, Rick C. Petty wrote: > I am having troubles with 5.3's sound drivers. Once in awhile I'll > have popping noises when some programs are using sound, although I > have been unable to repeat anything reliabliy. However, I can > repeatably lock up XMMS (and thus holding /dev/dsp open, preventing > others from playing sound) if I (1) pause playback and then (2) hit > stop. I'm using the built-in OSS driver (1.2.10 libOSS.so) with no > other plugins enabled. Under heavy load, music skips significantly. > I've tried messing with hw.snd.targetirqrate, but that didn't seem to > help. > > What's very strange is that I am using the exact same setup as I was > under 5.1-p19, same config files (incl. the kernel config). I was > expecting a smooth transition, but it seems like sound is being > problematic for me. > > I've also noticed audio lag in certain programs (notorious ones such > as linux-flashplugin*, others under the linux ABI, and many games). > This was a problem back in 5.1, but since I'm emailing I thought I'd > ask a related question: How would one go about fixing this audio > lag? I've tried tuning hw.snd.targetirqrate up to 256 but that just > makes xmms skip more often and doesn't fix the lag in other programs. > I've even gone through the effort of changing buffer sizes, etc. and > recompiling the laggy programs, but many programs still are about > 0.3-1.0 seconds behind (ave: 0.5s). Take games/heretic for > instance.. Back in the 5.0-RELEASE timeframe, there was zero audio > lag, and around 5.1 to 5.2.1 sound was completely broken.. now with > 5.3-R it's lagging 0.5s on the default build. Any suggestions??? > > I did not install the xmms package(s) but built everything from > scratch. I doubt there's anything strange in my kernel config, since > it's mostly GENERIC with items removed that exist as KLDs... Maybe enabling preemption will help you. (options PREEMPTION in the kernel) Kind regards, Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger@de.clara.net http://www.claranet.de/