]> Shamusworld >> Repos - thunder/blobdiff - src/ym2151.h
Added save states; updated application icon.
[thunder] / src / ym2151.h
index b1719a9b75da4c82a5d4e560e479626de1612e97..7e6ac53c139199771a8a80ea4102cdb24b591d6a 100644 (file)
@@ -40,6 +40,8 @@
 #ifndef __YM2151_H__
 #define __YM2151_H__
 
+#include <cstdio>
+
 // Register IDs
 #define YM_KON         (0x08)
 #define YM_NOISE       (0x0F)
@@ -117,7 +119,8 @@ typedef struct ym2151_f {
 ** '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 ...
@@ -156,5 +159,9 @@ SAMPLE * YMBuffer(int n);
 
 void YMSetIrqHandler(int n, void (* handler)(void));
 
-#endif /* _H_YM2151_ */
+// JLH functions
 
+void YMSaveState(FILE *);
+void YMLoadState(FILE *);
+
+#endif /* _H_YM2151_ */