diff options
author | Dan Everton <dan@iocaine.org> | 2007-08-03 10:00:42 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2007-08-03 10:00:42 +0000 |
commit | f4a61f0c4a999790f07d061352100ac6310a38f6 (patch) | |
tree | 0cf03d0a08f5b5de7318ed5db948fd41c5196cca /apps/tagcache.h | |
parent | 1fbf847eedd90b6f3e40decd64e1094d7a7dc383 (diff) | |
download | rockbox-f4a61f0c4a999790f07d061352100ac6310a38f6.tar.gz rockbox-f4a61f0c4a999790f07d061352100ac6310a38f6.zip |
Add support for parsing the disc number tag from metadata and use of it in the database. Patch originally from FS#4961 with some minor tweaks by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r-- | apps/tagcache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h index 3d80c6975f..ada624783a 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h | |||
@@ -24,14 +24,14 @@ | |||
24 | 24 | ||
25 | enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title, | 25 | enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title, |
26 | tag_filename, tag_composer, tag_comment, tag_albumartist, tag_year, | 26 | tag_filename, tag_composer, tag_comment, tag_albumartist, tag_year, |
27 | tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_rating, | 27 | tag_discnumber, tag_tracknumber, tag_bitrate, tag_length, tag_playcount, tag_rating, |
28 | tag_playtime, tag_lastplayed, tag_commitid, | 28 | tag_playtime, tag_lastplayed, tag_commitid, |
29 | /* Virtual tags */ | 29 | /* Virtual tags */ |
30 | tag_virt_length_min, tag_virt_length_sec, | 30 | tag_virt_length_min, tag_virt_length_sec, |
31 | tag_virt_playtime_min, tag_virt_playtime_sec, | 31 | tag_virt_playtime_min, tag_virt_playtime_sec, |
32 | tag_virt_entryage, tag_virt_autoscore }; | 32 | tag_virt_entryage, tag_virt_autoscore }; |
33 | 33 | ||
34 | #define TAG_COUNT 17 | 34 | #define TAG_COUNT 18 |
35 | 35 | ||
36 | /* Maximum length of a single tag. */ | 36 | /* Maximum length of a single tag. */ |
37 | #define TAG_MAXLEN (MAX_PATH*2) | 37 | #define TAG_MAXLEN (MAX_PATH*2) |
@@ -43,7 +43,7 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title, | |||
43 | #define IDX_BUF_DEPTH 64 | 43 | #define IDX_BUF_DEPTH 64 |
44 | 44 | ||
45 | /* Tag Cache Header version 'TCHxx'. Increment when changing internal structures. */ | 45 | /* Tag Cache Header version 'TCHxx'. Increment when changing internal structures. */ |
46 | #define TAGCACHE_MAGIC 0x54434809 | 46 | #define TAGCACHE_MAGIC 0x5443480A |
47 | 47 | ||
48 | /* How much to allocate extra space for ramcache. */ | 48 | /* How much to allocate extra space for ramcache. */ |
49 | #define TAGCACHE_RESERVE 32768 | 49 | #define TAGCACHE_RESERVE 32768 |