Mercurial > hg > audiodb
view 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 |
line wrap: on
line source
#include "audioDB.h" extern "C" { #include "audioDB_API.h" #include "audioDB-internals.h" } void audiodb_close(adb_t *adb) { free(adb->path); free(adb->header); delete adb->keys; delete adb->track_lengths; delete adb->track_offsets; close(adb->fd); free(adb); }