#ifndef __YM2151_H__
#define __YM2151_H__
+#include <cstdio>
+
// Register IDs
#define YM_KON (0x08)
#define YM_NOISE (0x0F)
** 'rate' is sampling rate and 'bufsiz' is the size of the
** buffer that should be updated at each interval
*/
-int YMInit(int num, int clock, int rate, int sample_bits, int bufsiz); //, SAMPLE ** buffer);
+//int YMInit(int num, int clock, int rate, int sample_bits, int bufsiz); //, SAMPLE ** buffer);
+int YMInit(int clock, int rate);
/*
** shutdown the YM2151 emulators ...
void YMSetIrqHandler(int n, void (* handler)(void));
-#endif /* _H_YM2151_ */
+// JLH functions
+void YMSaveState(FILE *);
+void YMLoadState(FILE *);
+
+#endif /* _H_YM2151_ */