Re: 2.5.74-mm1

From: Davide Libenzi (davidel@xmailserver.org)
Date: Sat Jul 05 2003 - 21:29:48 EST


On Sun, 6 Jul 2003, Diego Calleja [ISO-8859-15] García wrote:

> El Sat, 5 Jul 2003 23:09:12 +0200 Daniel Phillips <phillips@arcor.de>
> escribió:
>
> > The "better" mechanism for sound scheduling is SCHED_RR, which requires
> > root privilege for some reason that isn't clear to me. Or maybe there
> > once was a good reason, back in the days of the dinosaurs.
>
> I don't think mp3 playing needs nothing special.
>
> Mp3 decoding on today's computers taks insignificant amounts of cpu time.
> Having mp3 skips even in light loads in a 2x800 box seems just
> unacceptable.

It is not a problem of CPU time spent, it is a timing problem. Many sound
players do use to feed the sound card with write()s that are typically
8-16Kb and it is sufficent 100-200ms of CPU black-out (at 44100 16bit) to
have a buffer under-run and an audio skip.

- Davide

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:26 EST