blob: f3b2ca19ae09b4b5fb2a6754f3c0b09e03526d9a (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
// license:BSD-3-Clause
// copyright-holders:Angelo Salese
/***************************************************************************
TA7630P
***************************************************************************/
#ifndef MAME_SOUND_TA7630_H
#define MAME_SOUND_TA7630_H
#pragma once
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_TA7630_ADD(tag) \
MCFG_DEVICE_ADD((tag), TA7630, (0))
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> ta7630_device
class ta7630_device : public device_t
/*, public device_sound_interface*/
{
public:
// construction/destruction
ta7630_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// filter setters
void set_device_volume(device_sound_interface *device,uint8_t value);
void set_channel_volume(device_sound_interface *device, uint8_t ch,uint8_t value);
protected:
// device-level overrides
//virtual void device_validity_check(validity_checker &valid) const override;
virtual void device_start() override;
virtual void device_reset() override;
private:
double m_vol_ctrl[16]; // table for volume gains
};
// device type definition
DECLARE_DEVICE_TYPE(TA7630, ta7630_device)
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
#endif // MAME_SOUND_TA7630_H
|