1
/***************************************************************************
5
Generic simple sound functions.
7
Copyright Nicola Salmoria and the MAME Team.
8
Visit http://mamedev.org for licensing and usage restrictions.
10
***************************************************************************/
14
#ifndef __SOUND_GENERIC_H__
15
#define __SOUND_GENERIC_H__
19
/***************************************************************************
23
***************************************************************************/
25
int generic_sound_init(running_machine &machine);
28
READ8_HANDLER( soundlatch_r );
29
READ8_HANDLER( soundlatch2_r );
30
READ8_HANDLER( soundlatch3_r );
31
READ8_HANDLER( soundlatch4_r );
32
READ16_HANDLER( soundlatch_word_r );
33
READ16_HANDLER( soundlatch2_word_r );
34
READ16_HANDLER( soundlatch3_word_r );
35
READ16_HANDLER( soundlatch4_word_r );
38
WRITE8_HANDLER( soundlatch_w );
39
WRITE8_HANDLER( soundlatch2_w );
40
WRITE8_HANDLER( soundlatch3_w );
41
WRITE8_HANDLER( soundlatch4_w );
42
WRITE16_HANDLER( soundlatch_word_w );
43
WRITE16_HANDLER( soundlatch2_word_w );
44
WRITE16_HANDLER( soundlatch3_word_w );
45
WRITE16_HANDLER( soundlatch4_word_w );
48
WRITE8_HANDLER( soundlatch_clear_w );
49
WRITE8_HANDLER( soundlatch2_clear_w );
50
WRITE8_HANDLER( soundlatch3_clear_w );
51
WRITE8_HANDLER( soundlatch4_clear_w );
53
/* If you're going to use soundlatchX_clear_w, and the cleared value is
54
something other than 0x00, use this function from machine_init. Note
55
that this one call effects all 4 latches */
56
void soundlatch_setclearedvalue(running_machine &machine, int value);
59
#endif /* __SOUND_GENERIC_H__ */