mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-20 17:49:22 +01:00
29 lines
822 B
C
29 lines
822 B
C
/*
|
|
**
|
|
** 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_
|
|
|
|
extern void YM2612Init(void);
|
|
extern void YM2612Config(unsigned char dac_bits);
|
|
extern void YM2612ResetChip(void);
|
|
extern void YM2612Update(int *buffer, int length);
|
|
extern void YM2612Write(unsigned int a, unsigned int v);
|
|
extern unsigned int YM2612Read(void);
|
|
extern int YM2612LoadContext(unsigned char *state);
|
|
extern int YM2612SaveContext(unsigned char *state);
|
|
|
|
#endif /* _YM2612_ */
|