1 #ifndef _C6280_H_
2 #define _C6280_H_
3 
4 #define MAX_C6280 2
5 
6 struct C6280_interface
7 {
8     int num;
9     int volume[MAX_C6280];
10     int clock[MAX_C6280];
11 };
12 
13 typedef struct {
14     UINT16 frequency;
15     UINT8 control;
16     UINT8 balance;
17     UINT8 waveform[32];
18     UINT8 index;
19     INT16 dda;
20     UINT8 noise_control;
21     UINT32 noise_counter;
22     UINT32 counter;
23 } t_channel;
24 
25 typedef struct {
26     UINT8 select;
27     UINT8 balance;
28     UINT8 lfo_frequency;
29     UINT8 lfo_control;
30     t_channel channel[8];
31     INT16 volume_table[32];
32     UINT32 noise_freq_tab[32];
33     UINT32 wave_freq_tab[4096];
34 } c6280_t;
35 
36 /* Function prototypes */
37 int c6280_sh_start(const struct MachineSound *msound);
38 void c6280_sh_stop(void);
39 WRITE_HANDLER( C6280_0_w );
40 WRITE_HANDLER( C6280_1_w );
41 
42 #endif /* _C6280_H_ */
43