RE: [Familiar] Re: tweaking ide and hdparm settings

"James Conner" <[email protected]>
Newsgroups gmane.comp.handhelds.linux.intimate
Message-ID <DJELKPKDEAIBCJHFGKKPOEOBCDAA.jim__18123.6895420172$1115030512$gmane$org@secret.org.uk>
A few months ago, WormMan on IRC hacked madplay to include a pre-buffer
stage...

The hack was simple & elegant.. Quite simply.. read one byte out of every
1024 and then discard it.. If the OS has spare disk cache, then it'll hold
the whole track in there... if you're low on memory, only a couple of megs
will be cached...

Also means that you can still play 70MB mp3s (i.e. whole CD ripped to one
track), without filling up /tmp


Jim / Tangent



-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Andrew Bernat
Sent: 13 October 2001 19:29
To: Adam Lydick
Cc: [email protected]; [email protected];
[email protected]
Subject: Re: [Familiar] Re: [Intimate] tweaking ide and hdparm settings


On Sat, 13 Oct 2001, Adam Lydick wrote:

> My idea for a quick hack was:
>
> for n in /mnt/udrive/mp3dir/*
> do cp $n /tmp/tmp.mp3
> mpg321 /tmp/tmp.mp3
> done
>
> (This breaks for mp3's with spaces in their names, and mp3s that would
> fill the ramdrive, a more sophisticated script could be written ;)

Spaces aren't bad, just add double quotes around the $n. The mp3s that
would overflow would just never get played, and the mpeg player would
gripe.

Drew

--
Drew Bernat
Paradyn Project                                                  __ ____
[email protected]                                                |  | |
[email protected]                                                  | |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.