Genesis-Plus-GX/source/sound/sound.h

30 lines
531 B
C
Raw Normal View History

2007-08-10 22:34:06 +02:00
#ifndef _SOUND_H_
#define _SOUND_H_
typedef struct
{
int running;
int enable;
int count;
int base;
int index;
} t_timer;
/* Global variables */
extern uint8 fm_reg[2][0x100];
extern uint8 fm_latch[2];
extern uint8 fm_status;
extern t_timer timer[2];
/* Function prototypes */
void sound_init (void);
void fm_reset (void);
void fm_restore(void);
2007-08-20 21:44:24 +02:00
void fm_write (uint8 cpu, int address, int data);
2007-08-10 22:34:06 +02:00
int fm_read (int address);
void fm_update_timers (int inc);
2007-08-20 21:44:24 +02:00
void psg_write (uint8 cpu, int data);
2007-08-10 22:34:06 +02:00
#endif /* _SOUND_H_ */