blob: 32f903f108ae6e0a9a8513463e2133a4e72b0b09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef ARCADIA_SOUND_H_
#define ARCADIA_SOUND_H_
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_ARCADIA_SOUND_ADD(_tag) \
MCFG_SOUND_ADD(_tag, ARCADIA_SOUND, 0)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> arcadia_sound_device
class arcadia_sound_device : public device_t,
public device_sound_interface
{
public:
// construction/destruction
arcadia_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
DECLARE_WRITE8_MEMBER(write);
protected:
// device-level overrides
virtual void device_start();
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
sound_stream *m_channel;
UINT8 m_reg[3];
int m_size, m_pos,m_tval,m_nval;
unsigned m_mode, m_omode;
unsigned m_volume;
unsigned m_lfsr;
};
// device type definition
extern const device_type ARCADIA_SOUND;
#endif /* ARCADIA_SOUND_H_ */
|