home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / beos / PPBeDevKit.ZIP / PLAYERPR.TAR / PlayerPRO / Source / Import-Export / IT.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-26  |  2.8 KB  |  176 lines

  1. /********************                        ***********************/
  2. //
  3. //    Player PRO 5.0 - DRIVER SOURCE CODE -
  4. //
  5. //    Library Version 5.0
  6. //
  7. //    To use with MAD Library for Mac: Symantec, CodeWarrior and MPW
  8. //
  9. //    Antoine ROSSET
  10. //    16 Tranchees
  11. //    1206 GENEVA
  12. //    SWITZERLAND
  13. //
  14. //    COPYRIGHT ANTOINE ROSSET 1996, 1997, 1998
  15. //
  16. //    Thank you for your interest in PlayerPRO !
  17. //
  18. //    FAX:                (+41 22) 346 11 97
  19. //    PHONE:             (+41 79) 203 74 62
  20. //    Internet:     RossetAntoine@bluewin.ch
  21. //
  22. /********************                        ***********************/
  23.  
  24. #ifndef COMPIL68K 
  25. #pragma options align=mac68k
  26. #endif
  27.  
  28. typedef struct ITPatForm
  29. {
  30.     unsigned short        length;
  31.     unsigned short        row;
  32.     long                no;
  33.     char                data[];
  34. } ITPatForm;
  35.  
  36. typedef struct ITSampForm
  37. {
  38.     long        ID;
  39.     char        DOSName[ 12];
  40.     Byte        no;
  41.     Byte        GvL;
  42.     Byte        Flag;
  43.     Byte        Vol;
  44.     char        SampName[ 26];
  45.     short    Convert;
  46.     long        length;
  47.     long        loopBegin;
  48.     long        loopEnd;
  49.     long        C5Speed;
  50.     long        SusLoopBegin;
  51.     long        SusLoopEnd;
  52.     long        samplePtr;
  53.     Byte        ViS;
  54.     Byte        ViD;
  55.     Byte        ViR;
  56.     Byte        ViT;
  57. } ITSampForm;
  58.  
  59. typedef struct ITNode
  60. {
  61.     char        y;
  62.     short    x;
  63. } ITNode;
  64.  
  65. typedef struct ITEnv
  66. {
  67.     Byte        Flag;
  68.     Byte        Num;
  69.     Byte        LpB;
  70.     Byte        LpE;
  71.     Byte        SLB;
  72.     Byte        SLE;
  73.     ITNode    nodes[25];
  74. } ITEnv;
  75.  
  76. typedef struct ITKeyMap
  77. {
  78.     Byte        note;
  79.     Byte        samp;
  80. } ITKeyMap;
  81.  
  82. typedef struct ITInsForm        // size = 547
  83. {
  84.     long        ID;
  85.     char        DOSName[ 12];
  86.     Byte        no;
  87.     Byte        NNA;
  88.     Byte        DCT;
  89.     Byte        DCA;
  90.     short    FadeOut;
  91.     Byte        PPS;
  92.     Byte        PPC;
  93.     Byte        GbV;
  94.     Byte        DfP;
  95.     char        no2[ 2];
  96.     short    TrkVers;
  97.     Byte        NoS;
  98.     Byte        no3;
  99.     char        INSName[ 26];
  100.     char        no4[ 6];
  101.     ITKeyMap    keyMap[ 120];
  102.     
  103.     // new structure
  104.     
  105.     ITEnv    volEnv;
  106.     ITEnv    panEnv;
  107.     ITEnv    pitchEnv;
  108.     
  109. } ITInsForm;
  110.  
  111. typedef struct ITOldInsForm        // size = 554
  112. {
  113.     long        ID;
  114.     char        DOSName[ 12];
  115.     Byte        no;
  116.     Byte        NNA;
  117.     Byte        DCT;
  118.     Byte        DCA;
  119.     short    FadeOut;
  120.     Byte        PPS;
  121.     Byte        PPC;
  122.     Byte        GbV;
  123.     Byte        DfP;
  124.     char        no2[ 2];
  125.     short    TrkVers;
  126.     Byte        NoS;
  127.     Byte        no3;
  128.     char        INSName[ 26];
  129.     char        no4[ 6];
  130.     ITKeyMap    keyMap[ 120];
  131.     
  132.     // old structure
  133.     
  134.     ITKeyMap    volEnv[ 100];
  135.     
  136. } ITOldInsForm;
  137.  
  138. typedef struct ITForm
  139. {
  140.     long                ID;
  141.     char                     name[26];
  142.     char                     no[ 2];
  143.     
  144.     short              orderNum;
  145.     short               insNum;
  146.     short               smpNum;
  147.     short                  patNum;
  148.     short                 cwtv;
  149.     short            cmwt;
  150.     short                  flags;
  151.     short            special;
  152.     
  153.     Byte                globalVol;
  154.     Byte                mixVol;
  155.     Byte                iSpeed;
  156.     Byte                iTempo;
  157.     char                panSeparation;
  158.     char                null;
  159.     short            MsgLgth;
  160.     long                MsgOffset;
  161.     char                no2[ 4];
  162.     
  163.     char                chanPan[ 64];
  164.     char                chanVol[ 64];
  165.     
  166.     unsigned char          *orders;
  167.     long                *parapins;
  168.     long                *parapsamp;
  169.     long                *parappat;
  170.     
  171.     ITInsForm            *insdata;
  172.     ITSampForm        *sampdata;
  173. } ITForm;
  174. #ifndef COMPIL68K        
  175. #pragma options align=power
  176. #endif