diff options
author | Michiel Van Der Kolk <not.valid@email.address> | 2005-06-05 23:00:42 +0000 |
---|---|---|
committer | Michiel Van Der Kolk <not.valid@email.address> | 2005-06-05 23:00:42 +0000 |
commit | b1e1e44041f7c078a8a1e4f31ab0cde03efd1b2a (patch) | |
tree | b928f0edd7b2e8b13807042098cf08c47b5ae76e /apps/plugins/searchengine/dbinterface.c | |
parent | 40efb12b8c4c4a698bbff74492d4c14fd6839a88 (diff) |
Database v3 support.. works with the new format, new fields aren't getting used yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6573 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/searchengine/dbinterface.c')
-rw-r--r-- | apps/plugins/searchengine/dbinterface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/searchengine/dbinterface.c b/apps/plugins/searchengine/dbinterface.c index fe3ff2dd45..c098079e35 100644 --- a/apps/plugins/searchengine/dbinterface.c +++ b/apps/plugins/searchengine/dbinterface.c @@ -25,7 +25,7 @@ #undef ARTISTENTRY_SIZE #undef FILERECORD2OFFSET -#define SONGENTRY_SIZE (rb->tagdbheader->songlen+12+rb->tagdbheader->genrelen+4) +#define SONGENTRY_SIZE (rb->tagdbheader->songlen+12+rb->tagdbheader->genrelen+12) #define FILEENTRY_SIZE (rb->tagdbheader->filelen+12) #define ALBUMENTRY_SIZE (rb->tagdbheader->albumlen+4+rb->tagdbheader->songarraylen*4) #define ARTISTENTRY_SIZE (rb->tagdbheader->artistlen+rb->tagdbheader->albumarraylen*4) @@ -103,6 +103,9 @@ void loadsongdata() { rb->read(*rb->tagdb_fd,currententry->genre,rb->tagdbheader->genrelen); currententry->bitrate=readshort(*rb->tagdb_fd); currententry->year=readshort(*rb->tagdb_fd); + currententry->playtime=readlong(*rb->tagdb_fd); + currententry->track=readshort(*rb->tagdb_fd); + currententry->samplerate=readshort(*rb->tagdb_fd); currententry->loadedsongdata=1; } |