Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re[2]: ID3 database browsing
From: BlueChip (cs_bluechip_at_webtribe.net)
Date: 2004-10-13


If there is a well documented pre-existing standard that offers the
functionality we desire - I can see no reason to invent something
else. Adding itunes support sounds like a clincher to me.

BC

>The apple ipod database format is very well documented. Why not use
>that? Then people who use itunes can also benefit from this...
>
>-eric
>
>DH> Just realised the logical way of representing the crossreferencing indices
>DH> correctly would actually be:
>
>DH> index.db
>DH> "SONGS", count, songs-offset
>DH> "ALBUMS", count, albums-offset
>DH> "ARTISTS", count, artists-offset
>DH> ...
> >>songs-offset:
>DH> ""
>DH> "song title",filename
>DH> "song title",filename
>DH> ... (alphabetically sorted by song title)
> >>albums-offset:
>DH> "SONGS",
>DH> "album name", song-index 1, song-index2, ...
>DH> "album name", song-index 1, song-index 2, ...
>DH> ... (alphabetically sorted by album name)
> >>artists-offset:
>DH> "ALBUMS","SONGS"
>DH> "artist name", album-count, album-index 1, album-index 2, ... song-index1,
>DH> song-index2, ...
>DH> "artist name", album-count, album-index 1, album-index 2, ... song-index1,
>DH> song-index2, ...
>
>DH> i.e. each section in the db file starts with a list of all the
>DH> cross-reference index entries. If the list is empty, then each entry
>DH> contains the filename. Otherwise, each entry contains an index into the
>DH> corresponding named tags section. If there's more than one entry in the
>DH> list of cross-referenced indices (i.e. "ALBUMS", "SONGS") then each entry
>DH> contains the count of cross-references for all but the last index (i.e.
>DH> artist name is followed by the count of album-index offsets, followed
>by the
>DH> album-index offsets themselves, followed by the song-index offsets
>until the
>DH> end of the line)
>
>DH> d
>
>DH> _______________________________________________
>DH> http://cool.haxx.se/mailman/listinfo/rockbox
>
>
>_______________________________________________
>http://cool.haxx.se/mailman/listinfo/rockbox

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa