blob: fd928bc31e46be238a6f54cb216877458c2fa42d (
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
42
|
// license:BSD-3-Clause
// copyright-holders:cam900
#ifndef MAME_SOUND_NAMCO_163_H
#define MAME_SOUND_NAMCO_163_H
#pragma once
class namco_163_sound_device : public device_t,
public device_sound_interface
{
public:
namco_163_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
DECLARE_WRITE_LINE_MEMBER(disable_w);
void addr_w(u8 data);
void data_w(u8 data);
u8 data_r();
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_clock_changed() override;
// global sound parameters
u8 m_ram[0x80];
u8 m_reg_addr;
u8 m_addr;
bool m_inc;
bool m_disable;
sound_stream *m_stream;
// internals
inline s8 get_sample(u16 addr);
virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
};
DECLARE_DEVICE_TYPE(NAMCO_163, namco_163_sound_device)
#endif // MAME_SOUND_NAMCO_163_H
|