home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / miscprog / ad-prog / snddef.h < prev    next >
C/C++ Source or Header  |  1989-02-23  |  2KB  |  66 lines

  1. /* This causes malloc() and free() to be used.  If not defined, then static
  2.    memory will be allocated at compile time. */
  3. #define DYNAMIC
  4.  
  5. #define  NR_VOICES    11
  6.  
  7. #define  FILLER_SIZE 15
  8.  
  9. /* Number of events (other than note events) to read from the file at one
  10.    time.  Also used to set storage buffer size. */
  11. #define  MAX_STOCK         12
  12.  
  13. /* Number of note events to read from the file at one time.  Also used to
  14.    set storage buffer size. */
  15. #define  NOTE_STOCK        64
  16.  
  17. /* Maximum number of instrument definitions to be read and stored.  This is
  18.    used only if DYNAMIC is not defined. */
  19. #define  MAX_INSTR         35
  20.  
  21. /* The following indicates the priority of events.  The lower the number,
  22.    the higher the priority.  Notes must have the lowest priority and tempo
  23.    events must have the next lowest priority.  (See also SendTempo() in
  24.    rolplay.c.)
  25. */
  26. #define  EOF_EVENT    0
  27. #define  INSTR_EVENT  1
  28. #define  VOL_EVENT    2
  29. #define  PITCH_EVENT  3
  30. #define  TEMPO_EVENT  4
  31. #define  NOTE_EVENT   5
  32. #define  NR_EVENTS    6
  33.  
  34. #define  BYTE1        char
  35. #define  BYTE2        int
  36. #define  BYTE4        long int
  37. #define  UBYTE1       unsigned char
  38. #define  UBYTE2       unsigned int
  39. #define  UBYTE4       unsigned long int
  40.  
  41. #define  DO           do{
  42. #define  WHILE        }while
  43.  
  44. extern   int   SoundCall (int,...);
  45.  
  46. #define  Init_Snd_Drvr()           SoundCall(0)
  47. #define  Start_Time_ToDrvr(a,b)    SoundCall(2,a,b)
  48. #define  Set_State_Drvr(a)         SoundCall(3,a)
  49. #define  Play_Status()             SoundCall(4)
  50. #define  Flush_Queues()            SoundCall(5)
  51. #define  Mode_ToDrvr(a)            SoundCall(6,a)
  52. #define  Volume_ToDrvr(a,b,c,d)    SoundCall(8,a,b,c,d)
  53. #define  Tempo_ToDrvr(a,b,c)       SoundCall(9,a,b,c)
  54. #define  Transpose_ToDrvr(a)       SoundCall(10,a)
  55. #define  Voice_ToDrvr(a)           SoundCall(12,a)
  56. #define  Note_ToDrvr(a,b,c,d,e)    SoundCall(14,a,b,c,d,e)
  57. #define  Note_NoDelay(a,b,c)       SoundCall(15,a,b,c)
  58. #define  Instr_ToDrvr(a,b,c)       SoundCall(16,(Timbre far *)a,b,c)
  59. #define  Pitch_ToDrvr(a,b,c,d,e)   SoundCall(17,a,b,c,d,e)
  60. #define  Ticks_ToDrvr(a)           SoundCall(18,a)
  61. #define  Direct_Note_On(a,b)       SoundCall(19,a,b)
  62. #define  Direct_Note_Off(a)        SoundCall(20,a)
  63. #define  Direct_Set_Ins(a)         SoundCall(21,(Timbre far *)a)
  64. #define  Waveforms_On(a)           SoundCall(23,a)
  65.  
  66.