From owner-freebsd-multimedia Wed May 3 6:58: 0 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by hub.freebsd.org (Postfix) with ESMTP id 1009737B977; Wed, 3 May 2000 06:57:52 -0700 (PDT) (envelope-from netchild@leidinger.net) Received: from [62.104.201.2] (helo=mx1.freenet.de) by mout0.freenet.de with esmtp (Exim 3.14 #3) id 12mzeu-0007Wv-00; Wed, 03 May 2000 15:57:48 +0200 Received: from [213.6.47.36] (helo=Magelan.Leidinger.net) by mx1.freenet.de with esmtp (Exim 3.14 #3) id 12mzet-0007Y7-00; Wed, 03 May 2000 15:57:47 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.9.3/8.9.3) with ESMTP id MAA00686; Wed, 3 May 2000 12:21:57 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200005031021.MAA00686@Magelan.Leidinger.net> Date: Wed, 3 May 2000 12:21:53 +0200 (CEST) From: Alexander Leidinger Subject: Re: sound To: culverk@wam.umd.edu Cc: multimedia@freebsd.org, cg@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [redirected to multimedia@] On 28 Apr, Kenneth Wayne Culver wrote: > Just to let someone know (I know this is -current) but some of the recent > changes to the pcm driver have had some wierd effects. First, no wav file > will completely play (at least not the short ones); second, xmms now takes > 100% cpu, and in top, it says that 76% of this is being used by the > "system" I see 100% cpu too, but with my own mpeg player. mpg123 didn't use 100% cpu. I think it's related to some changes in the buffer code of pcm (if I remember correctly the commit messages). My own player has a decode thread and a write-to-output-device thread. The ouput thread just locks one of multiple buffers, writes the data (<= 8k) in it to /dev/dsp and unlocks the buffer. Note: I didn't know how one has to use /dev/dsp, perhaps writting 8k is too much, but the previous versions of pcm didn't showed this behavior. (1) netchild@ttyp0% uname -a FreeBSD Magelan.Leidinger.net 5.0-CURRENT FreeBSD 5.0-CURRENT #15: Mon Apr 24 18:09:05 CEST 2000 root@Magelan.Leidinger.net:/big/usr/src/sys/compile/WORK i386 The source of the world (and kernel) is at least from the same day. (5) netchild@ttyp1% ident /usr/src/sys/dev/sound/pcm/* |grep FreeBSD $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.8 2000/04/01 22:23:59 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97.h,v 1.4 2000/03/20 15:30:47 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.25 2000/04/23 18:09:17 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/channel.h,v 1.9 2000/04/23 18:09:17 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/datatypes.h,v 1.10 2000/04/15 05:04:12 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.19 2000/04/23 18:09:18 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/dsp.h,v 1.2 1999/09/01 06:58:22 peter Exp $ $FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.4 2000/01/29 18:48:30 peter Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.9 2000/04/15 05:04:12 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.5 2000/03/20 15:21:49 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/mixer.h,v 1.3 2000/03/20 15:21:50 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.19 2000/04/05 01:13:42 cg Exp $ $FreeBSD: src/sys/dev/sound/pcm/sound.h,v 1.11 2000/03/20 15:30:47 cg Exp $ I haven't tried it with a recent version (at least sound.c seems to be at 1.21 now), but I want to update today. Bye, Alexander. -- Speak softly and carry a cellular phone. http://www.Leidinger.net Alexander+Home @ Leidinger.net GPG fingerprint = 7423 F3E6 3A7E B334 A9CC B10A 1F5F 130A A638 6E7E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message