Date: Thu, 14 Oct 1999 09:32:26 +0200 (CEST) From: Jakob Alvermark <jakob@teligent.se> To: The Hermit Hacker <scrappy@hub.org> Cc: alvermark@teligent.se, "Kevin S. Brackett" <ksb@abyss.net>, freebsd-multimedia@FreeBSD.ORG Subject: Re: xmms: unusual amount of CPU? Message-ID: <Pine.BSF.4.10.9910140922340.50936-200000@teligent.se> In-Reply-To: <Pine.BSF.4.10.9910131234420.30583-100000@teligent.se>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Ok, here you have the patch of my ugly hack. It's not right, but it make
it work for me.
/Jakob
On Wed, 13 Oct 1999, The Hermit Hacker wrote:
>
> Care to share? :) And have you sent it into the xmms developers list for
> possible inclusion? Even if its not necessarily right, it may spur them
> onto something better?
>
> On Wed, 13 Oct 1999, Jakob Alvermark wrote:
>
> > On Wed, 13 Oct 1999, The Hermit Hacker wrote:
> >
> > I had the same problem, when using the "pcm" drivers. It works with OSS
> > and esound. However, found out why it happens, and made a quick and dirty
> > hack in the source to make work. I guess somebody should take a closed
> > look at the real problem and submit a patch.
> >
> > /Jakob
> >
> > > On Wed, 13 Oct 1999, Jakob Alvermark wrote:
> > >
> > > > On a P-II 400 with 3.2-RELEASE and xmms 0.9.5.1 playing a 192Kbps file:
> > >
> > > Hi Jakob...
> > >
> > > I grab'd 0.9.5.1 from both the tar.gz and cvs, and, for some
> > > reason, it won't move to the next song on the playlist, where 0.9.1 has no
> > > problems...do you see similar, or is it just me? *raised eyebrow*
> > >
> > >
> > >
> > > >
> > > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
> > > > 541 jakob 2 0 12728K 8632K select 2:47 0.54% 0.54% xmms
> > > >
> > > > Same system playing a 128Kbps file:
> > > > 541 jakob 2 0 12728K 8632K RUN 3:06 0.00% 0.00% xmms
> > > >
> > > > /Jakob
> > > >
> > > > On Tue, 12 Oct 1999, Kevin S. Brackett wrote:
> > > >
> > > > > Seems right to me...
> > > > >
> > > > > 2394 ksb 2 0 7252K 5592K select 0:26 23.47% 23.34% xmms
> > > > >
> > > > > I have a K6 300.
> > > > >
> > > > > - kevin
> > > > >
> > > > > On Tue, 12 Oct 1999, The Hermit Hacker wrote:
> > > > >
> > > > > >
> > > > > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
> > > > > > 12273 marc 71 0 7796K 3820K RUN 1:39 32.23% 32.23% xmms
> > > > > >
> > > > > > Does this look unusual to you? I'm used to running gqmpeg which appears
> > > > > > to use up, on average, <5%, but I like the xmms interface better :(
> > > > > >
> > > > > > Thanks...
> > > > > >
> > > > > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
> > > > > > Systems Administrator @ hub.org
> > > > > > primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org
> > > > > >
> > > > > >
> > > > > >
> > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > with "unsubscribe freebsd-multimedia" in the body of the message
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > with "unsubscribe freebsd-multimedia" in the body of the message
> > > > >
> > > > >
> > > >
> > > > -------------------------------------------------------
> > > > Teligent AB, P.O. Box 213, S-149 23 Nynäshamn, Sweden
> > > > Telephone +46-(0)8 520 660 00 * Fax +46-(0)8 520 193 36
> > > > Direct +46-(0)8 520 660 32 * GSM +46-(0)70 792 16 57
> > > >
> > > >
> > > >
> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > with "unsubscribe freebsd-multimedia" in the body of the message
> > > >
> > >
> > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
> > > Systems Administrator @ hub.org
> > > primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org
> > >
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-multimedia" in the body of the message
> > >
> > >
> >
> > -------------------------------------------------------
> > Teligent AB, P.O. Box 213, S-149 23 Nynäshamn, Sweden
> > Telephone +46-(0)8 520 660 00 * Fax +46-(0)8 520 193 36
> > Direct +46-(0)8 520 660 32 * GSM +46-(0)70 792 16 57
> >
> >
> >
>
> Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
> Systems Administrator @ hub.org
> primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org
>
>
>
-------------------------------------------------------
Teligent AB, P.O. Box 213, S-149 23 Nynäshamn, Sweden
Telephone +46-(0)8 520 660 00 * Fax +46-(0)8 520 193 36
Direct +46-(0)8 520 660 32 * GSM +46-(0)70 792 16 57
[-- Attachment #2 --]
--- audio.c Thu Oct 14 09:26:06 1999
+++ ../../../xmms-0.9.5.1.hack/Output/OSS/audio.c Tue Sep 28 16:36:45 1999
@@ -146,10 +146,7 @@
audio_buf_info buf_info;
int bytes;
- if (!ioctl(fd, SNDCTL_DSP_GETOSPACE, &buf_info))
- bytes = ((buf_info.fragstotal - buf_info.fragments - 3) * buf_info.fragsize);
- else
- bytes = 0;
+ bytes = 0;
if (!oss_used() && bytes <= 0)
return FALSE;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9910140922340.50936-200000>
