diff audioDB.h @ 142:c74048e9b569 powertable

Beginnings of power table support Database header change (and hence version) Read in the powertable on init (and write on create)
author mas01cr
date Tue, 30 Oct 2007 14:26:50 +0000
parents a5d5a55a412d
children 6ae986868114
line wrap: on
line diff
--- a/audioDB.h	Tue Oct 30 11:44:49 2007 +0000
+++ b/audioDB.h	Tue Oct 30 14:26:50 2007 +0000
@@ -46,7 +46,7 @@
 
 #define O2_OLD_MAGIC ('O'|'2'<<8|'D'<<16|'B'<<24)
 #define O2_MAGIC ('o'|'2'<<8|'d'<<16|'b'<<24)
-#define O2_FORMAT_VERSION (0U)
+#define O2_FORMAT_VERSION (1U)
 
 #define O2_DEFAULT_POINTNN (10U)
 #define O2_DEFAULT_TRACKNN  (10U)
@@ -67,6 +67,7 @@
 // Flags
 #define O2_FLAG_L2NORM (0x1U)
 #define O2_FLAG_MINMAX (0x2U)
+#define O2_FLAG_POWER (0x4U)
 #define O2_FLAG_TIMES (0x20U)
 
 // Query types
@@ -104,6 +105,7 @@
   uint32_t dataOffset;
   uint32_t l2normTableOffset;
   uint32_t timesTableOffset;
+  uint32_t powerTableOffset;
   uint32_t dbSize;
 } dbTableHeaderT, *dbTableHeaderPtr;
 
@@ -139,6 +141,7 @@
   double* qNorm;
   double* sNorm;
   double* timesTable;  
+  double* powerTable;
 
   // Flags and parameters
   unsigned verbosity;   // how much do we want to know?