File:  [RetroPC.NET] / np2 / sound / tms3631.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Oct 17 02:58:03 2003 JST (22 years ago) by yui
Branches: MAIN
CVS tags: HEAD
Initial revision


typedef struct {
	UINT32	freq;
	UINT32	count;
} TMSCH;

typedef struct {
	TMSCH	ch[8];
	UINT	enable;
} _TMS3631, *TMS3631;

typedef struct {
	UINT	ratesft;
	SINT32	left;
	SINT32	right;
	SINT32	feet[16];
} TMS3631CFG;


#ifdef __cplusplus
extern "C" {
#endif

void tms3631_initialize(UINT rate);
void tms3631_setvol(const BYTE *vol);

void tms3631_reset(TMS3631 tms);
void tms3631_setkey(TMS3631 tms, BYTE ch, BYTE key);
void tms3631_setenable(TMS3631 tms, BYTE enable);

void SOUNDCALL tms3631_getpcm(TMS3631 tms, SINT32 *pcm, UINT count);

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>