comparison audioDB-internals.h @ 442:16c5c51a4c32 api-inversion

Add more information to adb_t In this case, add a vector to store track offsets. WARNING WARNING WARNING: unlike trackOffsetTable, this is a raw off_t in bytes of the feature data: in other words, it already has sizeof(double) and dbH->dim in it. (I think this is probably minimally unsurprising in the long run, but as I convert stuff there might well be errors creeping in...)
author mas01cr
date Wed, 24 Dec 2008 10:56:29 +0000
parents 681837f7c903
children cb44e57a96fa
comparison
equal deleted inserted replaced
441:1a1ea05a94ce 442:16c5c51a4c32
12 int fd; 12 int fd;
13 int flags; 13 int flags;
14 adb_header_t *header; 14 adb_header_t *header;
15 std::map<std::string,uint32_t> *keys; 15 std::map<std::string,uint32_t> *keys;
16 std::vector<uint32_t> *track_lengths; 16 std::vector<uint32_t> *track_lengths;
17 std::vector<off_t> *track_offsets;
17 }; 18 };
18 19
19 typedef struct { 20 typedef struct {
20 bool operator() (const adb_result_t &r1, const adb_result_t &r2) { 21 bool operator() (const adb_result_t &r1, const adb_result_t &r2) {
21 return strcmp(r1.key, r2.key) < 0; 22 return strcmp(r1.key, r2.key) < 0;