Mercurial > hg > audiodb
view close.cpp @ 620:70fc1a504138
Okay, I think my python bindings have reached the border of useful, so in the svn they go.
The bindings currently allow for adb create and open, status and the setting of the l2norm and power flags.
Note that these are the direct c bindings, when it's done there will be OO dressing on top for standard entry.
Also, even though I don't use numpy yet, the include file is brought in, so the module won't build if you don't have numpy in an importable place.
author | map01bf |
---|---|
date | Tue, 15 Sep 2009 17:40:02 +0000 |
parents | 4eedc18634f5 |
children | b1723ae7675e |
line wrap: on
line source
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->keymap; delete adb->track_lengths; delete adb->track_offsets; if(adb->cached_lsh) { delete adb->cached_lsh; } divest_lock(adb->fd); close(adb->fd); free(adb); }