2007-08-10 22:34:06 +02:00
|
|
|
/*
|
2008-08-07 14:26:07 +02:00
|
|
|
**
|
2009-06-02 20:12:31 +02:00
|
|
|
** File: ym2612.h -- header for ym2612.c
|
2008-08-07 14:26:07 +02:00
|
|
|
** software implementation of Yamaha FM sound generator
|
|
|
|
**
|
|
|
|
** Copyright (C) 2001, 2002, 2003 Jarek Burczynski (bujar at mame dot net)
|
|
|
|
** Copyright (C) 1998 Tatsuyuki Satoh , MultiArcadeMachineEmulator development
|
|
|
|
**
|
|
|
|
** Version 1.4 (final beta)
|
|
|
|
**
|
2007-08-10 22:34:06 +02:00
|
|
|
*/
|
2008-08-07 14:26:07 +02:00
|
|
|
|
2011-02-23 20:14:55 +01:00
|
|
|
#ifndef _H_YM2612_
|
|
|
|
#define _H_YM2612_
|
2007-08-10 22:34:06 +02:00
|
|
|
|
|
|
|
/* compiler dependence */
|
|
|
|
#ifndef INLINE
|
|
|
|
#define INLINE static __inline__
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2010-08-24 14:48:40 +02:00
|
|
|
extern int YM2612Init(double clock, int rate);
|
2008-08-07 14:26:07 +02:00
|
|
|
extern int YM2612ResetChip(void);
|
2010-04-23 14:31:07 +02:00
|
|
|
extern void YM2612Update(long int *buffer, int length);
|
2009-02-25 17:53:28 +01:00
|
|
|
extern void YM2612Write(unsigned int a, unsigned int v);
|
|
|
|
extern unsigned int YM2612Read(void);
|
|
|
|
extern unsigned char *YM2612GetContextPtr(void);
|
|
|
|
extern unsigned int YM2612GetContextSize(void);
|
2009-02-28 18:49:31 +01:00
|
|
|
extern void YM2612Restore(unsigned char *buffer);
|
2011-02-23 20:14:55 +01:00
|
|
|
extern int YM2612LoadContext(unsigned char *state, char *version);
|
|
|
|
extern int YM2612SaveContext(unsigned char *state);
|
2007-08-10 22:34:06 +02:00
|
|
|
|
2011-02-23 20:14:55 +01:00
|
|
|
|
|
|
|
#endif /* _YM2612_ */
|