home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / goattracker_2.67.zip / src / gsid.h < prev    next >
C/C++ Source or Header  |  2008-04-01  |  462b  |  17 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);
  9. int sid_fillbuffer(short *ptr, int samples);
  10. unsigned char sid_getorder(unsigned char index);
  11.  
  12. #ifndef GSID_C
  13. extern unsigned char sidreg[NUMSIDREGS];
  14. #endif
  15.  
  16. #endif
  17.