From: David Griffith Date: Mon, 23 Sep 2013 02:58:14 +0000 (-0700) Subject: How did I forget this file??? X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=907d8d6c0a2b5f805152d27720cda463a7c4d2fb;p=liskon_frotz.git How did I forget this file??? --- 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) + + + + +