annotate close.cpp @ 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 62a0515f59be
children 16a903968d18
rev   line source
mas01cr@392 1 #include "audioDB.h"
mas01cr@392 2 extern "C" {
mas01cr@392 3 #include "audioDB_API.h"
mas01cr@402 4 #include "audioDB-internals.h"
mas01cr@392 5 }
mas01cr@392 6
mas01cr@392 7 void audiodb_close(adb_t *adb) {
mas01cr@392 8 free(adb->path);
mas01cr@392 9 free(adb->header);
mas01cr@402 10 delete adb->keys;
mas01cr@432 11 delete adb->track_lengths;
mas01cr@442 12 delete adb->track_offsets;
mas01cr@392 13 close(adb->fd);
mas01cr@392 14 free(adb);
mas01cr@392 15 }