kopia lustrzana https://github.com/Jean-MarcHarvengt/MCUME
31 wiersze
584 B
C
31 wiersze
584 B
C
|
|
#ifndef _SOUND_H_
|
|
#define _SOUND_H_
|
|
|
|
typedef struct
|
|
{
|
|
int running;
|
|
int enable;
|
|
int count;
|
|
int base;
|
|
int index;
|
|
} t_timer;
|
|
|
|
/* Global variables */
|
|
extern int fm_timera_tab[1024];
|
|
extern int fm_timerb_tab[256];
|
|
extern uint8 fm_reg[2][0x100];
|
|
extern uint8 fm_latch[2];
|
|
extern int timer_status;
|
|
extern t_timer timer[2];
|
|
|
|
/* Function prototypes */
|
|
void sound_init(void);
|
|
void sound_reset(void);
|
|
void fm_write(int address, int data);
|
|
int fm_read(int address);
|
|
void fm_update_timers(void);
|
|
void psg_write(int data);
|
|
|
|
#endif /* _SOUND_H_ */
|