home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 25 / CD_ASCQ_25_1095.iso / dos / prg / dwstk200 / dwt.h < prev    next >
C/C++ Source or Header  |  1995-08-01  |  2KB  |  93 lines

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