Mercurial > hg > audiodb
view power.cpp @ 461:2b8cfec91ed7 api-inversion
Factor out some bits of audiodb_query_spec_qpointers()
New functions audiodb_track_id_datum() and audiodb_datum_qpointers()
will be useful in places where audioDB::init_track_aux_data is currently
being called. We should be able to simplify audioDB::query_loop_points
quite a lot this way...
author | mas01cr |
---|---|
date | Tue, 30 Dec 2008 15:38:50 +0000 |
parents | 7038f31124d1 |
children |
line wrap: on
line source
#include "audioDB.h" extern "C" { #include "audioDB_API.h" #include "audioDB-internals.h" } int audiodb_power(adb_t *adb) { if(!(adb->flags & O_RDWR)) { return 1; } if(adb->header->length > 0) { return 1; } adb->header->flags |= O2_FLAG_POWER; return audiodb_sync_header(adb); }