2011-07-14 00:49:52 +02:00
|
|
|
/*
|
|
|
|
**
|
|
|
|
** software implementation of Yamaha FM sound generator (YM2612/YM3438)
|
|
|
|
**
|
|
|
|
** Original code (MAME fm.c)
|
|
|
|
**
|
|
|
|
** Copyright (C) 2001, 2002, 2003 Jarek Burczynski (bujar at mame dot net)
|
|
|
|
** Copyright (C) 1998 Tatsuyuki Satoh , MultiArcadeMachineEmulator development
|
|
|
|
**
|
|
|
|
** Version 1.4 (final beta)
|
|
|
|
**
|
|
|
|
** Additional code & fixes by Eke-Eke for Genesis Plus GX
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _H_YM2612_
|
|
|
|
#define _H_YM2612_
|
|
|
|
|
2017-12-22 20:43:28 +01:00
|
|
|
enum {
|
|
|
|
YM2612_DISCRETE = 0,
|
|
|
|
YM2612_INTEGRATED,
|
|
|
|
YM2612_ENHANCED
|
|
|
|
};
|
|
|
|
|
2012-10-13 19:01:31 +02:00
|
|
|
extern void YM2612Init(void);
|
2017-12-22 20:43:28 +01:00
|
|
|
extern void YM2612Config(int type);
|
2011-07-14 00:49:52 +02:00
|
|
|
extern void YM2612ResetChip(void);
|
2011-09-25 12:21:44 +02:00
|
|
|
extern void YM2612Update(int *buffer, int length);
|
2011-07-14 00:49:52 +02:00
|
|
|
extern void YM2612Write(unsigned int a, unsigned int v);
|
2018-01-07 16:44:14 +01:00
|
|
|
extern unsigned int YM2612Read(void);
|
2011-07-14 00:49:52 +02:00
|
|
|
extern int YM2612LoadContext(unsigned char *state);
|
|
|
|
extern int YM2612SaveContext(unsigned char *state);
|
|
|
|
|
|
|
|
#endif /* _YM2612_ */
|