home *** CD-ROM | disk | FTP | other *** search
- /* Header file for Expand code module, object version. */
- /* The code is called using Expand() which returns the */
- /* reason code. All entries in Expand's header (with */
- /* the exception of the code entry point) may be read */
- /* or written using the global variables below. */
-
- /* Function prototype */
- int Expand(void);
-
- /* Global variables */
- extern int Expand_SampleType;
- extern int Expand_SequenceType;
- extern void *Expand_SrcBufferPtr;
- extern long Expand_SrcLength;
- extern void *Expand_DestBufferPtr;
- extern long Expand_DestLength;
- extern long Expand_BytesWritten;
- extern int Expand_ReasonCode;
- extern long Expand_OutputFlags;
- extern long Expand_SampleLength;
- extern long Expand_Counter;
- extern int Expand_SamplePeriod;
- extern int Expand_FileFormat;
-
- /* Reason codes */
- #define ALL_DONE 0 /* Decompression complete */
- #define SRC_EMPTY 1 /* Src buffer request */
- #define DEST_FULL 2 /* Dest buffer output */
- #define INIT_DONE 3 /* Initialisation complete */
- #define SRC_ERROR 5 /* ERROR = bad src buffer */
- #define DEST_ERROR 6 /* ERROR = bad dest buffer */
- #define UNKNOWN_FORMAT 8 /* Unrecognised sample format */
-
- /* Output flags for this version */
- #define OUTPUT_LINEAR (1<<0)
- #define OUTPUT_ENHANCE (1<<1)
- #define OUTPUT_16BIT (1<<2)
- #define USING_16BIT (1<<28)
- #define USING_ENHANCE (1<<29)
- #define FILE_IS_LINEAR (1<<30)
- #define FILE_IS_16BIT (1<<31)
-