home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1999 March / PCShareware-3-99.iso / IMPLE / PCS05.RAR / GAMES.C / JUDASCFG.H < prev    next >
Text File  |  1997-05-22  |  1KB  |  36 lines

  1. /*
  2.  * Configurable things.
  3.  *
  4.  * REMEMBER:
  5.  * If you change CHANNELS or SIGNIFICANT_BITS, write the changes also to
  6.  * JUDASCFG.INC. When finished with configuring, type wmake /a to completely
  7.  * re-compile the JUDAS library.
  8.  */
  9.  
  10. /*
  11.  * How many times in second the DMA buffer goes round. The smaller this is,
  12.  * the larger the buffer and the more there is delay in sound effects, but then
  13.  * judas_update() doesn't have to be called so often. DMA buffer maximum size
  14.  * (64K) sets a limit on the minimum value though. Don't fear, judas_init()
  15.  * checks the buffer size and will simply limit it to 64K.
  16.  */
  17. #define PER_SECOND 20
  18.  
  19. /*
  20.  * Number of digital channels. Increase or decrease according to your needs.
  21.  * If it's below 32, all tunes can't be loaded. If it's above 32, you can
  22.  * play 32-channel tunes and even have sound fx at the same time!
  23.  * Number of channels will affect mixing speed just a tiny bit, however an
  24.  * unused channel takes EXTREMELY little time compared to a used one.
  25.  */
  26. #define CHANNELS 32
  27.  
  28. /*
  29.  * Number of significant bits in mixing. Maximum is 16. If it's below 16,
  30.  * the leftover bits are used for clipping. At the current setting 14 2 bits
  31.  * are used for clipping, so you can distort sound up to 4x without getting
  32.  * an overflow (nasty-sounding distortion.) With 13 bits, you have 3 bits for
  33.  * clipping and can distort up to 8x etc.
  34.  */
  35. #define SIGNIFICANT_BITS 14
  36.