From owner-freebsd-questions@FreeBSD.ORG Thu Mar 3 18:17:54 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4839816A4CE for ; Thu, 3 Mar 2005 18:17:54 +0000 (GMT) Received: from smtp14.wxs.nl (smtp14.wxs.nl [195.121.6.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAFF643D6D for ; Thu, 3 Mar 2005 18:17:53 +0000 (GMT) (envelope-from saffisme@Planet.nl) Received: from planet.nl (ipd50af075.speed.planet.nl [213.10.240.117]) by smtp14.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0ICS001Y2G5SJP@smtp14.wxs.nl> for freebsd-questions@freebsd.org; Thu, 03 Mar 2005 19:17:52 +0100 (CET) Content-return: allowed Date: Thu, 03 Mar 2005 19:20:00 +0100 From: "J.E. Dooper" To: freebsd-questions@freebsd.org Message-id: <20050303182000.GA70922@dvorak.lan> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Audio latency X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 18:17:54 -0000 Hi, My sound works and when I use mplayer or xmms I don't experience any (noticable!) audio latency. In applications like doomlegacy and quakeforge I do. I think this might be the problem: http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-August/055314.html Though I don't understand much about the solution... Some useful info: I'm using FreeBSD5.3-STABLE. Card: nForce2 onboard sound. And I compiled my kernel with "device sound". And I load the snd_ich.ko module. The output of `dmesg | grep pcm` : pcm0: port 0xd400-0xd47f,0xd000-0xd0ff mem 0xe7080000-0xe7080fff irq 21 at device 6.0 on pci0 pcm0: [GIANT-LOCKED] pcm0: The output of `cat /dev/sndstat` : FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0xd000, 0xd400 irq 21 bufsz 16384 kld snd_ich (1p/1r/0v channels duplex default) The output of `sysctl -a | grep pcm` : hw.snd.pcm0.buffersize: 16384 hw.snd.pcm0.vchans: 0 hw.snd.pcm0.ac97rate: 48000 dev.pcm.0.%desc: nVidia nForce2 dev.pcm.0.%driver: pcm dev.pcm.0.%location: slot=6 function=0 handle=\_SB_.PCI0.MACI dev.pcm.0.%pnpinfo: vendor=0x10de device=0x006a subvendor=0x1695 subdevice=0x100 0 class=0x040100 dev.pcm.0.%parent: pci0 The output of `sysctl -a | grep snd`: hw.snd.targetirqrate: 128 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.unit: 0 hw.snd.maxautovchans: 0 hw.snd.pcm0.buffersize: 16384 hw.snd.pcm0.vchans: 0 hw.snd.pcm0.ac97rate: 48000 My questions are: What could be causing this latency, and what can I do to fix this? Regards, Jorma