home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / GameSmith1-Hisoft-System.DMS / in.adf / GDS_System.lha / include / sound / sound.i < prev   
Encoding:
Text File  |  1993-12-29  |  1.3 KB  |  40 lines

  1. ;***************************************************************
  2. ; Sound struct
  3. ;***************************************************************
  4.  
  5.     rsreset
  6. SND_DATA    rs.l    1    ;ptr to sound data
  7. SND_LOOP    rs.l    1    ;ptr to loop portion of sound data (echo)
  8. SND_LENGTH rs.l    1    ;length of sound data (in 16 bit words)
  9. SND_REPEAT rs.w    1    ;number of times to play sample
  10. SND_COUNT    rs.w    1    ;running total of number of times sample played
  11. SND_PERIOD rs.w    1    ;tone of sound or note value
  12. SND_VOLUME rs.w    1    ;volume to play sample (0 - 64)
  13. SND_TYPE     rs.w    1    ;sample type (see below)
  14. SND_FLAGS    rs.w    1    ;sample flags (see below)
  15. SND_VOLFADE rs.w    1    ;volume fade value (0 for no fade)
  16. SND_VOLCNT rs.w    1    ;number VB interrupts before volume decrement, or 0
  17. ;             for fade only after every play of sample
  18. SND_PERFADE rs.w    1    ;period fade value (0 for no fade)
  19. SND_PERCNT rs.w    1    ;number of VB interrupts before period decrement, of 0
  20. ;             for fade only after every play of sample
  21. SND_SIZEOF    rs.b    0    ;size of sound struct
  22.  
  23. ; The sound types:
  24.  
  25. SND_TYPE_EFX  EQU    3    ;only supported sound type as yet
  26.  
  27. * ---------------------------------------------------------------------------
  28. *
  29. * The sound flags:
  30. * ---------------
  31.  
  32. SND_FAST    EQU    1    ;sound data resides in fast RAM
  33.  
  34. ; Sound channel values
  35.  
  36. CHANNEL0    EQU    1    ;sound channel 0
  37. CHANNEL1    EQU    2    ;sound channel 1
  38. CHANNEL2    EQU    4    ;sound channel 2
  39. CHANNEL3    EQU    8    ;sound channel 3
  40.