Date: Wed, 3 May 2000 12:21:53 +0200 (CEST) From: Alexander Leidinger <Alexander@Leidinger.net> To: culverk@wam.umd.edu Cc: multimedia@freebsd.org, cg@freebsd.org Subject: Re: sound Message-ID: <200005031021.MAA00686@Magelan.Leidinger.net> In-Reply-To: <Pine.GSO.4.21.0004281649420.3336-100000@rac6.wam.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
[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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005031021.MAA00686>