home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / goattracker_2.68_stereo.zip / src / gsid.h < prev    next >
C/C++ Source or Header  |  2009-01-03  |  535b  |  18 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. void sid_init(int speed, unsigned m, unsigned ntsc, unsigned interpolate, unsigned customclockrate, unsigned usefp);
  9. int sid_fillbuffer(short *lptr, short *rptr, int samples);
  10. unsigned char sid_getorder(unsigned char index);
  11.  
  12. #ifndef GSID_C
  13. extern unsigned char sidreg[NUMSIDREGS];
  14. extern unsigned char sidreg2[NUMSIDREGS];
  15. #endif
  16.  
  17. #endif
  18.