Mercurial > hg > aim92
annotate tools/header.h @ 0:5242703e91d3 tip
Initial checkin for AIM92 aimR8.2 (last updated May 1997).
author | tomwalters |
---|---|
date | Fri, 20 May 2011 15:19:45 +0100 |
parents | |
children |
rev | line source |
---|---|
tomwalters@0 | 1 |
tomwalters@0 | 2 #define HEADER_STRING "header_bytes=000000\n" |
tomwalters@0 | 3 #define HEADER_START "header_bytes=" |
tomwalters@0 | 4 #define STRSIZE( _string ) ( sizeof ( _string ) - 1 ) |
tomwalters@0 | 5 |
tomwalters@0 | 6 #define ApplicStr( header ) ( gen_applics[ Applic( header ) ] ) |
tomwalters@0 | 7 |
tomwalters@0 | 8 |
tomwalters@0 | 9 /* gen applications list */ |
tomwalters@0 | 10 |
tomwalters@0 | 11 static char *gen_applics[] = { |
tomwalters@0 | 12 "wav" , /* 0 */ /* WAV format */ |
tomwalters@0 | 13 |
tomwalters@0 | 14 "fbm" , /* 1 */ /* NAP format */ |
tomwalters@0 | 15 "bmm" , /* 2 */ |
tomwalters@0 | 16 "fbr" , /* 3 */ |
tomwalters@0 | 17 "fbc" , /* 4 */ |
tomwalters@0 | 18 "fbt" , /* 5 */ |
tomwalters@0 | 19 "fbd" , /* 6 */ |
tomwalters@0 | 20 "nap" , /* 7 */ |
tomwalters@0 | 21 |
tomwalters@0 | 22 "sgm" , /* 8 */ /* SGM format */ |
tomwalters@0 | 23 "cgm" , /* 9 */ |
tomwalters@0 | 24 "sas" , /* 10 */ |
tomwalters@0 | 25 |
tomwalters@0 | 26 "asa" , /* 11 */ /* EPN format */ |
tomwalters@0 | 27 "epn" , /* 12 */ |
tomwalters@0 | 28 "sep" , /* 13 */ |
tomwalters@0 | 29 |
tomwalters@0 | 30 "sai" , /* 14 */ /* SAI format */ |
tomwalters@0 | 31 "spl" , /* 15 */ |
tomwalters@0 | 32 ( char * ) 0 } ; |
tomwalters@0 | 33 |
tomwalters@0 | 34 |
tomwalters@0 | 35 /* gen formats list */ |
tomwalters@0 | 36 |
tomwalters@0 | 37 #define WAV 0 |
tomwalters@0 | 38 #define NAP 1 |
tomwalters@0 | 39 #define SGM 2 |
tomwalters@0 | 40 #define EPN 3 |
tomwalters@0 | 41 #define SAI 4 |
tomwalters@0 | 42 |
tomwalters@0 | 43 static char *gen_formats[] = { |
tomwalters@0 | 44 "wav" , /* 0 */ |
tomwalters@0 | 45 "nap" , /* 1 */ |
tomwalters@0 | 46 "sgm" , /* 2 */ |
tomwalters@0 | 47 "epn" , /* 3 */ |
tomwalters@0 | 48 "sai" , /* 4 */ |
tomwalters@0 | 49 ( char * ) 0 } ; |
tomwalters@0 | 50 |
tomwalters@0 | 51 |
tomwalters@0 | 52 extern char *ReadHeader() ; |
tomwalters@0 | 53 extern char *HeaderString() ; |
tomwalters@0 | 54 extern char *HeaderStringOnly() ; |
tomwalters@0 | 55 extern char *HeaderStrings() ; |
tomwalters@0 | 56 extern char *HeaderValueString() ; |
tomwalters@0 | 57 extern char *HeaderNameString() ; |
tomwalters@0 | 58 extern char *ApplicString() ; |
tomwalters@0 | 59 extern double HeaderDouble() ; |
tomwalters@0 | 60 extern int HeaderInt() ; |
tomwalters@0 | 61 extern int HeaderSamplerate() ; |
tomwalters@0 | 62 extern int Applic() ; |
tomwalters@0 | 63 extern int Format() ; |
tomwalters@0 | 64 extern void FreeHeader() ; |