home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / mikmod43.zip / MODPLAY.H < prev    next >
C/C++ Source or Header  |  1994-04-30  |  2KB  |  62 lines

  1. #ifndef MODPLAY_H
  2. #define MODPLAY_H
  3.  
  4. #include "mytypes.h"
  5.  
  6.  
  7. typedef struct AUDTMP{
  8.     UBYTE kick;            // if true=sample has to be restarted
  9.     UBYTE sample;        // which sample number (0-31)
  10.     int   handle;        // which sample-handle
  11.  
  12.     ULONG size;            // size of the sample in bytes
  13.     ULONG start;        // The start byte index in the sample
  14.     ULONG loop;            // loop position (index) (only loop if loop<size)
  15.  
  16.     BYTE  volume;        // amiga volume (0 t/m 64) to play the sample at
  17.     UWORD period;        // period to play the sample at
  18.  
  19.     /* You should not have to use the values
  20.        below in the player routine */
  21.  
  22.     UBYTE eff,dat,note;    //
  23.  
  24.     BYTE  retrig;        // retrig value (0 means don't retrig)
  25.     BYTE  finetune;        // what finetune to use
  26.  
  27.     BYTE  tmpvolume;    // tmp volume
  28.     UWORD tmpperiod;    // tmp period
  29.     UWORD wantedperiod;    // period to slide to (with effect 3 or 5)
  30.  
  31.     UBYTE portspeed;    // noteslide speed (toneportamento)
  32.  
  33.     UBYTE glissando;    // glissando (0 means off)
  34.     UBYTE wavecontrol;    //
  35.  
  36.     BYTE  vibpos;        // current vibrato position
  37.     UBYTE vibspd;        // "" speed
  38.     UBYTE vibdepth;        // "" depth
  39.  
  40.     BYTE  trmpos;        // current tremolo position
  41.     UBYTE trmspd;        // "" speed
  42.     UBYTE trmdepth;        // "" depth
  43. } AUDTMP;
  44.  
  45.  
  46. extern AUDTMP mp_audio[8];
  47. extern UBYTE  mp_bpm;
  48. extern UBYTE  mp_mainvol;
  49.  
  50. // Function prototypes:
  51.  
  52. void MP_NextPosition(void);
  53. void MP_PrevPosition(void);
  54. void MP_MainVol(UBYTE vol);
  55. void MP_ExtSpd(int yesno);
  56. void MP_HandleTick(void);
  57. void MP_Init(MODFILE *m);
  58. void MP_RegisterPlayer(void (*Player)(int chn,AUDTMP *aud,MODFILE *mf));
  59.  
  60. #endif
  61.  
  62.