Mercurial > hg > audiodb
diff sample.cpp @ 324:c93be2f3a674
Merge of branches/large_adb -r 514:524 onto the trunk. No conflicts. Added LARGE_ADB support. Turn on with --ntracks 20001 or greater. Use --adb_feature_root to locate feature files at QUERY time. A bug fix in LSH indexing that was incorrectly thresholding large numbers of shingles.
author | mas01mc |
---|---|
date | Thu, 21 Aug 2008 21:28:33 +0000 |
parents | cacad987d785 |
children | 521812d63516 |
line wrap: on
line diff
--- a/sample.cpp Tue Aug 12 14:25:51 2008 +0000 +++ b/sample.cpp Thu Aug 21 21:28:33 2008 +0000 @@ -56,7 +56,10 @@ void audioDB::sample(const char *dbName) { initTables(dbName, 0); - + if(dbH->flags & O2_FLAG_LARGE_ADB){ + error("error: sample not yet supported for LARGE_ADB"); + } + // build track offset table (FIXME: cut'n'pasted from query.cpp) off_t *trackOffsetTable = new off_t[dbH->numFiles]; unsigned cumTrack=0;