home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 497a.lha / ComSMUS_v2.2 / voicebank.prog / sample.h < prev    next >
C/C++ Source or Header  |  1991-04-07  |  836b  |  50 lines

  1. /* front-end include file for Amiga audio samples created by Karl's
  2.  * IFF 8SVX to C source converter.  19 June 87
  3.  */
  4.  
  5. #ifndef SAMPLE_H
  6.  
  7. #define SAMPLE_H
  8.  
  9. #ifndef I8SVX_H
  10. #include "iff/8svx.h"
  11. #endif
  12.  
  13. #define MAXOCTAVES 6
  14.  
  15. typedef struct sample_struct
  16. {
  17.     struct Node node;
  18.     Voice8Header sampleheader;
  19.     struct sample_struct *nextsample;
  20.     char *sampledata;
  21.     LONG samplebytes;
  22.     short octaveshift;
  23.     short high_c;
  24.     short low_c;
  25.     short octave_of_periods[12];
  26.     struct OctaveStruct {
  27.         char *OctaveShotSample;
  28.         LONG OctaveShotLength;
  29.         char *OctaveLoopSample;
  30.         LONG OctaveLoopLength;
  31.     } Octave[MAXOCTAVES];
  32. #ifndef NOAUDIT
  33.     short magic;
  34. #endif
  35. } Sample;
  36.  
  37.  
  38.  
  39. #define SAMPLE_MAGIC 17385
  40.  
  41. #ifndef NOAUDIT
  42. #define ASSERT_SAMPLE_MAGIC(x) assert(x->magic == SAMPLE_MAGIC);
  43. #else
  44. #define ASSERT_SAMPLE_MAGIC(x)
  45. #endif
  46.  
  47. #endif
  48.  
  49. /* end of sample.h */
  50.