Discussion:
Addition to Client Structure
Sean Adams
2002-01-15 22:40:17 UTC
Permalink
the client struct is only for client-specific state information.
Information like this should go in a global cache, perhaps with a
pointer such as "current_track_info" from the client struct.

A while back, I was proposed a general purpose structure for
files/platlist/directories/URLs, but it was ultimately decided that things
should be referenced by their paths. To be consistent with how we access
other meta information, you should not add anything to the client struct,
but instead make a new hash indexed by the path name.

BTW I'm leaning more strongly now towards a unified "thing struct", in
light of the memory overhead of all these separate hashes.
Great idea, Nicholas.
We already cache much of this information in individual caches that
are in the Misc.pm file. We could be a lot more efficient about
this (we have many copies of the URL/filepath, one for each hash
table.)
I just added a new cache today of the file length, it would be great
if somebody could improve this caching mechanism to be more memory
efficient and include all of the mp3info that's available.
To get started with CVS, check out the SourceForge CVS page for slimp3.
-dean
MP3::Info has a function get_mp3info (FILE) that returns a hash of useful
information about the given mp3, including bitrate, frequency, length in
seconds and more.
As we begin to add more features to the display (such as the progress bar,
time, time remaining, bitrate, frequency, etc.) we are going to want to
retrieve this information quite often. So...
I propose adding an addition variable (a hash) to the Client structure
called 'mp3info' that will be populated when a song begins playing. All it
would require is passing the hash from get_mp3info (FILE) to the Client
structure.
I can implement this, but I don't have a CVS account (nor do I know how to
use CVS yet.) Let me know what you guys think and if you would like me to
implement this myself or if someone else wants to tackle it.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2002-01-15 21:04:46 UTC
Permalink
Great idea, Nicholas.

We already cache much of this information in individual caches that
are in the Misc.pm file. We could be a lot more efficient about
this (we have many copies of the URL/filepath, one for each hash
table.)

I just added a new cache today of the file length, it would be great
if somebody could improve this caching mechanism to be more memory
efficient and include all of the mp3info that's available.

To get started with CVS, check out the SourceForge CVS page for slimp3.

-dean
MP3::Info has a function get_mp3info (FILE) that returns a hash of useful
information about the given mp3, including bitrate, frequency, length in
seconds and more.
As we begin to add more features to the display (such as the progress bar,
time, time remaining, bitrate, frequency, etc.) we are going to want to
retrieve this information quite often. So...
I propose adding an addition variable (a hash) to the Client structure
called 'mp3info' that will be populated when a song begins playing. All it
would require is passing the hash from get_mp3info (FILE) to the Client
structure.
I can implement this, but I don't have a CVS account (nor do I know how to
use CVS yet.) Let me know what you guys think and if you would like me to
implement this myself or if someone else wants to tackle it.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Nicholas Clark
2002-01-15 20:54:04 UTC
Permalink
MP3::Info has a function get_mp3info (FILE) that returns a hash of useful
information about the given mp3, including bitrate, frequency, length in
seconds and more.

As we begin to add more features to the display (such as the progress bar,
time, time remaining, bitrate, frequency, etc.) we are going to want to
retrieve this information quite often. So...

I propose adding an addition variable (a hash) to the Client structure
called 'mp3info' that will be populated when a song begins playing. All it
would require is passing the hash from get_mp3info (FILE) to the Client
structure.

I can implement this, but I don't have a CVS account (nor do I know how to
use CVS yet.) Let me know what you guys think and if you would like me to
implement this myself or if someone else wants to tackle it.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2003-02-22 13:10:09 UTC
Permalink
<!doctype html public "-//W3C//DTD W3 HTML//EN">
<head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [slimp3-dev] Addition to Client
Structure</title></head><body>
<div>Great idea, Nicholas.</div>
<div><br></div>
<div>We already cache much of this information in individual caches
that are in the Misc.pm file.&nbsp;&nbsp; We could be a lot more
efficient about this (we have many copies of the URL/filepath, one for
each hash table.)</div>
<div><br></div>
<div>I just added a new cache today of the file length, it would be
great if somebody could improve this caching mechanism to be more
memory efficient and include all of the mp3info that's
available.</div>
<div><br></div>
<div>To get started with CVS, check out the SourceForge CVS page for
slimp3.&nbsp; </div>
<div><br></div>
<div>-dean</div>
<div><br></div>
<blockquote type="cite" cite>MP3::Info has a function get_mp3info
(FILE) that returns a hash of useful<br>
information about the given mp3, including bitrate, frequency, length
in<br>
seconds and more.<br>
<br>
As we begin to add more features to the display (such as the progress
bar,<br>
time, time remaining, bitrate, frequency, etc.) we are going to want
to<br>
retrieve this information quite often. So...<br>
<br>
I propose adding an addition variable (a hash) to the Client
structure<br>
called 'mp3info' that will be populated when a song begins playing.
All it<br>
would require is passing the hash from get_mp3info (FILE) to the
Client<br>
structure.<br>
<br>
I can implement this, but I don't have a CVS account (nor do I know
how to<br>
use CVS yet.) Let me know what you guys think and if you would like me
to<br>
implement this myself or if someone else wants to tackle it.<br>
<br>
<br>
------------------------ Yahoo! Groups Sponsor
---------------------~--&gt;<br>
Sponsored by VeriSign - The Value of Trust<br>
When building an e-commerce site, you want to start with a<br>
secure foundation. Learn how with VeriSign's FREE Guide.<br>
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/rIp0lB/TM<br>
---------------------------------------------------------------------<span </span>~-&gt;<br>
<br>
To unsubscribe from this group, send an email to:<br>
slimp3-dev-unsubscribe-***@public.gmane.org<br>
<br>
&nbsp;<br>
<br>
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ </blockquote>
<div><br></div>
</body>
</html>

Loading...