home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Large Pack of OldSkool DOS MOD Trackers
/
goattracker_2.72_stereo.zip
/
src
/
gsid.h
< prev
next >
Wrap
C/C++ Source or Header
|
2009-12-20
|
866b
|
33 lines
#ifndef GSID_H
#define GSID_H
#define NUMSIDREGS 0x19
#define SIDWRITEDELAY 9 // lda $xxxx,x 4 cycles, sta $d400,x 5 cycles
#define SIDWAVEDELAY 4 // and $xxxx,x 4 cycles extra
typedef struct
{
float distortionrate;
float distortionpoint;
float distortioncfthreshold;
float type3baseresistance;
float type3offset;
float type3steepness;
float type3minimumfetresistance;
float type4k;
float type4b;
float voicenonlinearity;
} FILTERPARAMS;
void sid_init(int speed, unsigned m, unsigned ntsc, unsigned interpolate, unsigned customclockrate, unsigned usefp);
int sid_fillbuffer(short *lptr, short *rptr, int samples);
unsigned char sid_getorder(unsigned char index);
#ifndef GSID_C
extern unsigned char sidreg[NUMSIDREGS];
extern unsigned char sidreg2[NUMSIDREGS];
extern FILTERPARAMS filterparams;
#endif
#endif