#ifndef saa1099_h
#define saa1099_h

/**********************************************
	Philips SAA1099 Sound driver
**********************************************/

#define MAX_SAA1099 2

/* interface */
struct SAA1099_interface
{
	int numchips;						/* number of chips */
	int volume[MAX_SAA1099][2];			/* playback volume */
};

#ifdef __cplusplus
extern "C" {
#endif

int saa1099_sh_start(const struct MachineSound *msound);
void saa1099_sh_stop(void);

WRITE8_HANDLER( saa1099_control_port_0_w );
WRITE8_HANDLER( saa1099_write_port_0_w );
WRITE8_HANDLER( saa1099_control_port_1_w );
WRITE8_HANDLER( saa1099_write_port_1_w );

WRITE16_HANDLER( saa1099_control_port_0_lsb_w );
WRITE16_HANDLER( saa1099_write_port_0_lsb_w );
WRITE16_HANDLER( saa1099_control_port_1_lsb_w );
WRITE16_HANDLER( saa1099_write_port_1_lsb_w );

#ifdef __cplusplus
}
#endif

#endif
