home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / goattracker_2.70.zip / src / gsid.h < prev    next >
C/C++ Source or Header  |  2010-01-03  |  809b  |  32 lines

  1. #ifndef GSID_H
  2. #define GSID_H
  3.  
  4. #define NUMSIDREGS 0x19
  5. #define SIDWRITEDELAY 9 // lda $xxxx,x 4 cycles, sta $d400,x 5 cycles
  6. #define SIDWAVEDELAY 4 // and $xxxx,x 4 cycles extra
  7.  
  8. typedef struct
  9. {
  10.   float distortionrate;
  11.   float distortionpoint;
  12.   float distortioncfthreshold;
  13.   float type3baseresistance;
  14.   float type3offset;
  15.   float type3steepness;
  16.   float type3minimumfetresistance;
  17.   float type4k;
  18.   float type4b;
  19.   float voicenonlinearity;
  20. } FILTERPARAMS;
  21.  
  22. void sid_init(int speed, unsigned m, unsigned ntsc, unsigned interpolate, unsigned customclockrate, unsigned usefp);
  23. int sid_fillbuffer(short *ptr, int samples);
  24. unsigned char sid_getorder(unsigned char index);
  25.  
  26. #ifndef GSID_C
  27. extern unsigned char sidreg[NUMSIDREGS];
  28. extern FILTERPARAMS filterparams;
  29. #endif
  30.  
  31. #endif
  32.