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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************
PCD3311 DTMF/modem/musical tone generator emulation
**********************************************************************/
#include "pcd3311.h"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
const device_type PCD3311 = &device_creator<pcd3311_t>;
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// pcd3311_t - constructor
//-------------------------------------------------
pcd3311_t::pcd3311_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, PCD3311, "PCD3311", tag, owner, clock, "pcd3311", __FILE__),
device_sound_interface(mconfig, *this)
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void pcd3311_t::device_start()
{
save_item(NAME(m_a0));
save_item(NAME(m_mode));
save_item(NAME(m_strobe));
save_item(NAME(m_data));
}
//-------------------------------------------------
// sound_stream_update - handle update requests for
// our sound stream
//-------------------------------------------------
void pcd3311_t::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples)
{
}
|