1 #ifndef _H_YM2413_ 2 #define _H_YM2413_ 3 4 /* select output bits size of output : 8 or 16 */ 5 #define SAMPLE_BITS 16 6 7 #if (SAMPLE_BITS==16) 8 typedef INT16 SAMP; 9 #endif 10 #if (SAMPLE_BITS==8) 11 typedef INT8 SAMP; 12 #endif 13 14 15 16 17 int YM2413Init(int num, int clock, int rate); 18 void YM2413Shutdown(void); 19 void YM2413ResetChip(int which); 20 void YM2413Write(int which, int a, int v); 21 void YM2413WriteReg(int which, int r, int v); 22 unsigned char YM2413Read(int which, int a); 23 void YM2413UpdateOne(int which, INT16 **buffers, int length); 24 25 typedef void (*OPLL_UPDATEHANDLER)(int param,int min_interval_us); 26 27 void YM2413SetUpdateHandler(int which, OPLL_UPDATEHANDLER UpdateHandler, int param); 28 29 void YM2413Scan(INT32 which, INT32 nAction); 30 31 #endif /*_H_YM2413_*/ 32