home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / goattracker_2.73.zip / src / gsid.h < prev    next >
C/C++ Source or Header  |  2014-07-23  |  784b  |  31 lines

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