DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
src/hardware/snd_pc98/sound/tms3631.h
00001 
00002 typedef struct {
00003         UINT32  freq;
00004         UINT32  count;
00005 } TMSCH;
00006 
00007 typedef struct {
00008         TMSCH   ch[8];
00009         UINT    enable;
00010 } _TMS3631, *TMS3631;
00011 
00012 typedef struct {
00013         UINT    ratesft;
00014         SINT32  left;
00015         SINT32  right;
00016         SINT32  feet[16];
00017 } TMS3631CFG;
00018 
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 void tms3631_initialize(UINT rate);
00025 void tms3631_setvol(const UINT8 *vol);
00026 
00027 void tms3631_reset(TMS3631 tms);
00028 void tms3631_setkey(TMS3631 tms, REG8 ch, REG8 key);
00029 void tms3631_setenable(TMS3631 tms, REG8 enable);
00030 
00031 void SOUNDCALL tms3631_getpcm(TMS3631 tms, SINT32 *pcm, UINT count);
00032 
00033 #ifdef __cplusplus
00034 }
00035 #endif
00036