home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsc / computils / !CompUtils / Resources / ExpCode / cc / h / Universal
Encoding:
Text File  |  1995-07-23  |  1.2 KB  |  35 lines

  1. /* Header file for ExpCode code module, object version. */
  2. /* The code is called first using ExpCode_Init() to     */
  3. /* examine the file, then with ExpCode_Process() to     */
  4. /* perform the decompression. Both functions return a   */
  5. /* pointer to an error block, or NULL if no error       */
  6. /* occurred. All entries in ExpCode's header (with the  */
  7. /* exception of the code entry points and the Expand    */
  8. /* code offset) may be read or written using the global */
  9. /* variables below.                                     */
  10.  
  11. /* Function prototypes */
  12. os_error    *ExpCode_Init(void);
  13. os_error    *ExpCode_Process(void);
  14.  
  15. /* Global variables */
  16. extern    int    ExpCode_SampleType;
  17. extern    void    *ExpCode_SrcBufferPtr;
  18. extern    long    ExpCode_SrcLength;
  19. extern    void    *ExpCode_DestBufferPtr;
  20. extern    long    ExpCode_DestLength;
  21. extern    char    *ExpCode_FilenamePtr;
  22. extern    int    ExpCode_SamplePeriod;
  23. extern    long    ExpCode_OutputFlags;
  24. extern    long    ExpCode_SampleLength;
  25. extern    long    ExpCode_DataOffset;
  26.  
  27. /* Output flags for this version */
  28. #define    OUTPUT_LINEAR    (1<<0)
  29. #define    OUTPUT_ENHANCE    (1<<1)
  30. #define    OUTPUT_16BIT    (1<<2)
  31. #define    USING_16BIT    (1<<28)
  32. #define    USING_ENHANCE   (1<<29)
  33. #define    FILE_IS_LINEAR  (1<<30)
  34. #define    FILE_IS_16BIT    (1<<31)
  35.