Re: Fetch a track tag by id

Linus Walleij <[email protected]> Tue, 20 Sep 2005 19:36:41 +0200
Newsgroups gmane.comp.multimedia.libnjb.user
Message-ID <1127237801.9229.3.camel@felicia>
tis 2005-09-20 klockan 10:25 -0600 skrev Shaun Jackman:

> Is there an efficient function to fetch a njb_songid_t* for a given
> trackid? Fetching all the tags using NJB_Get_Track_Tag and searching
> for a given id is a lengthy process.

Shortly: no.

Reason: all Creative apps dump out the entire database and maintain
a cache internally. For the newer devices the dump is made every time
at startup.

In Gnomad I use a hash list with the trackID as explicit hash value
since this is guaranteed to be unique.

There may actually be some command in the USB protocol for reading out
metadata for a certain track, but since we have never seen Creative
or anyone else use it we don't know of it. (And I have repeatedly asked
Creative and Dell for the USB specs without an answer.) All we have is
USB logs and reverse-engineering.

Linus



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php