From 907d8d6c0a2b5f805152d27720cda463a7c4d2fb Mon Sep 17 00:00:00 2001 From: David Griffith Date: Sun, 22 Sep 2013 19:58:14 -0700 Subject: [PATCH] How did I forget this file??? --- src/dos/bcblorb.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/dos/bcblorb.h diff --git a/src/dos/bcblorb.h b/src/dos/bcblorb.h new file mode 100644 index 0000000..a7a4882 --- /dev/null +++ b/src/dos/bcblorb.h @@ -0,0 +1,29 @@ +#include "blorb.h" +#include "blorblow.h" + + +typedef struct sampledata_struct { + unsigned short channels; + unsigned long samples; + unsigned short bits; + double rate; +} sampledata_t; + + +bb_err_t blorb_err; +bb_map_t *blorb_map; +bb_result_t blorb_res; + + +/* uint32 *findchunk(uint32 *data, char *chunkID, int length); */ +char *findchunk(char *pstart, char *fourcc, int n); +unsigned short ReadShort(const unsigned char *bytes); +unsigned long ReadLong(const unsigned char *bytes); +double ReadExtended(const unsigned char *bytes); + +#define UnsignedToFloat(u) (((double)((long)(u - 2147483647L - 1))) + 2147483648.0) + + + + + -- 2.34.1