home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 10 / mycd10.iso / share / os2 / sonido / ultra08a / toolkit / struct.h < prev    next >
Encoding:
Text File  |  1995-06-15  |  1.3 KB  |  69 lines

  1. typedef struct
  2. {
  3.     short int voice;
  4.     unsigned short int end_idx;        /* end location in ultra DRAM */
  5.     unsigned char rate;            /* 0 to 63 */
  6.     unsigned char mode;            /* mode to run the volume ramp in ... */
  7. } VolumeStruct;
  8.  
  9. typedef struct
  10. {
  11.     short int voice;
  12.     unsigned short int speed_khz;
  13. } FreqStruct;
  14.  
  15. typedef struct
  16. {
  17.     short int voice;
  18.     unsigned char data;
  19. } BalanceStruct;
  20.  
  21. typedef struct
  22. {
  23.     short int voice;          /* voice to start */
  24.     unsigned long begin; /* start location in ultra DRAM */
  25.     unsigned long start; /* start loop location in ultra DRAM */
  26.     unsigned long end;      /* end location in ultra DRAM */
  27.     unsigned char mode;  /* mode to run the voice (loop etc) */
  28. } VoiceStruct;
  29.  
  30. typedef struct
  31. {
  32.     short int timer;
  33.     unsigned char time;
  34. } TimerStruct;
  35.  
  36. typedef struct
  37. {
  38.     unsigned long size;
  39.     unsigned long location;
  40. } AllocStruct;
  41.  
  42. typedef struct
  43. {
  44.     unsigned long size;
  45.     unsigned long location;
  46. } FreeStruct;
  47.  
  48. typedef struct
  49. {
  50.     long address;
  51.     unsigned char data;
  52. } PokeStruct;
  53.  
  54. typedef struct
  55. {
  56.     unsigned char control;
  57.     unsigned long dram_loc;
  58. } XferStruct;
  59.  
  60. typedef struct
  61. {
  62.     short int voice;
  63.     unsigned char balance;
  64.     unsigned short int freq;
  65.     unsigned short int volume;
  66.     unsigned char rate;
  67.     unsigned char mode;
  68. } AllStruct;
  69.