home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / STK100.ZIP / DWT.H < prev    next >
C/C++ Source or Header  |  1995-02-17  |  2KB  |  80 lines

  1. /******************************************************************************
  2. File:          dwt.h
  3. Version:     1.0
  4. Tab stops: every 2 collumns
  5. Project:     The Sound ToolKit
  6. Copyright: 1994 DiamondWare, Ltd.  All rights reserved.
  7. Written:     Keith Weiner
  8. Purpose:     Contains declarations for the DW Timer module
  9. History:     KW 08/24/94 Started
  10.                      EL 02/17/95 Finalized for v1.0
  11.  
  12. NB: This code is not compatible with source profilers
  13. ******************************************************************************/
  14.  
  15.  
  16.  
  17. #ifndef dwt_INCLUDE
  18.  
  19.     #define dwt_INCLUDE
  20.  
  21.  
  22.  
  23.     /*
  24.      . Below are the timer rates supported by DWT.    Anything in between
  25.      . the listed values will cause the DOS/BIOS clock to tick erratically
  26.      . and is thus not allowed.  Any value higher than 145.6 Hz means
  27.      . you have some very special circumstances; DWT won't fit your needs
  28.      . anyway.
  29.     */
  30.     #define dwt_18_2HZ         0                        //18.2 Hz
  31.     #define dwt_36_4HZ         1                        //36.4 Hz
  32.     #define dwt_72_8HZ         2                        //72.8 Hz
  33.     #define dwt_145_6HZ      3                        //145.6 Hz
  34.  
  35.  
  36.  
  37.     #ifdef __cplusplus
  38.         extern "C" {
  39.     #endif
  40.  
  41.  
  42.     /*
  43.      . See #defines, above
  44.     */
  45.     void _far _pascal dwt_Init(word rate);
  46.  
  47.  
  48.     /*
  49.      . If the program has called dwt_Init, it _MUST_ call dwt_Kill before it
  50.      . terminates.
  51.      .
  52.      . NB: Trap critical errors.    Don't let DOS put up the
  53.      .         "Abort, Retry, Fail?" text.    ('sides, it'll destroy your pretty gfx)
  54.     */
  55.     void _far _pascal dwt_Kill(void);
  56.  
  57.  
  58.     /*
  59.      . The following 2 functions affect the timer, but not the music
  60.     */
  61.     void _far _pascal dwt_Pause(void);
  62.  
  63.     void _far _pascal dwt_UnPause(void);
  64.  
  65.  
  66.     /*
  67.      .# of ticks since Beginning of World
  68.     */
  69.     dword _far _pascal dwt_MasterTick(void);
  70.  
  71.  
  72.  
  73.     #ifdef __cplusplus
  74.         }
  75.     #endif
  76.  
  77.  
  78.  
  79. #endif
  80.