diff options
author | 2017-09-22 01:02:05 +0200 | |
---|---|---|
committer | 2017-09-22 02:01:42 +0200 | |
commit | e3ccbe1852759ad826889ef782ef7e9c0fabce6c (patch) | |
tree | 28de3b022285ac685b45a1ea0108f84d44b4b1eb /src/devices/sound/ta7630.h | |
parent | 3ddb27cd82ca6f1312687128888d42e73073c34d (diff) |
Wrote a new device for TA7630, hooked it up to buggychl.cpp (nw)
Diffstat (limited to 'src/devices/sound/ta7630.h')
-rw-r--r-- | src/devices/sound/ta7630.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/devices/sound/ta7630.h b/src/devices/sound/ta7630.h new file mode 100644 index 00000000000..e87fa879d3b --- /dev/null +++ b/src/devices/sound/ta7630.h @@ -0,0 +1,61 @@ +// 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); + +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 |