view power.cpp @ 499:f2e2d1ffcc4e malcolm-large-tracks

Changed LSH_N_POINTS_BIT header field to a width of 5 bits
author mas01mc
date Sat, 10 Jan 2009 19:01:01 +0000
parents 342822c2d49a
children cc2b97d020b1
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);
}