home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / amiga / midi / obrst103.lha / OberSuite-1.03 / SourceCode / patchinfo.h < prev    next >
C/C++ Source or Header  |  1993-01-23  |  1KB  |  41 lines

  1. #ifndef _PATCHINFO_H
  2. #define _PATCHINFO_H    1
  3.  
  4. /**************************************************************************
  5. * patchinfo.h:    The PATCHINFO structure definitions.
  6. *        A part of OberSuite for the Commodore Amiga.
  7. *
  8. * Author:    Daniel Barrett, barrett@cs.umass.edu.
  9. * Version:    1.0.
  10. * Copyright:    None!  This program is in the Public Domain.
  11. *        Please share it with others.
  12. ***************************************************************************/
  13.  
  14. #include "decl.h"
  15.  
  16.  
  17. #define    INFO_STRING_LEN        20
  18. #define    PI_SOURCE_FILE        1
  19. #define    PI_SOURCE_MIDI        2
  20.  
  21. struct patchInfo
  22. {
  23.     UBYTE    *data;                /* The patch data itself. */
  24.     UBYTE    mode;                /* SINGLE_DATA, MULTI_DATA */
  25.     UBYTE    patchNum;            /* Desired patch number. */
  26.     int    source;                /* SOURCE_FILE, SOURCE_MIDI. */
  27.     long    rightSize;            /* Correct # data bytes. */
  28.     long    actualSize;            /* Actual # data bytes. */
  29.     long    numPatches;            /* How many patches to get. */
  30.     long    numSinglesInside;        /* # singles in a multipatch */
  31.     long    nameOffset;            /* 1st byte of patch name. */
  32.     long    firstSingleOffset;        /* 1st byte of single patch
  33.                          * numbers found in a multi. */
  34.     char    instrument[INFO_STRING_LEN];    /* English name. */
  35.     char    modeName[INFO_STRING_LEN];    /* "single", "multi" */
  36. };
  37. typedef struct patchInfo PATCHINFO;
  38.  
  39.  
  40. #endif    /*  _PATCHINFO_H */
  41.