diff options
author | 2014-05-06 17:37:43 +0000 | |
---|---|---|
committer | 2014-05-06 17:37:43 +0000 | |
commit | da1252459f7578b481e8be16cc701c185e44fc73 (patch) | |
tree | 3c83f920691467be40ee9a63801dd1ab6a4224d4 /src/emu/sound/2203intf.h | |
parent | c407543c9f5ff650f92ab736c0018f2185db7b21 (diff) |
ay8910_device and extended family: converted to devcb2 (nw)
This is easily the commit I ever did that touches the most drivers. I payed extra attention while doing it, stared at the diff really hard to find any errors and did some testing. Obviously I can't test every single game / system, so please report any regression you might find.
Diffstat (limited to 'src/emu/sound/2203intf.h')
-rw-r--r-- | src/emu/sound/2203intf.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/emu/sound/2203intf.h b/src/emu/sound/2203intf.h index c1e96ff0663..5918ac5a1d1 100644 --- a/src/emu/sound/2203intf.h +++ b/src/emu/sound/2203intf.h @@ -11,9 +11,6 @@ void ym2203_update_request(void *param); #define MCFG_YM2203_IRQ_HANDLER(_devcb) \ devcb = &ym2203_device::set_irq_handler(*device, DEVCB2_##_devcb); -#define MCFG_YM2203_AY8910_INTF(_ay8910_config) \ - ym2203_device::set_ay8910_config(*device, _ay8910_config); - class ym2203_device : public ay8910_device { public: @@ -21,7 +18,6 @@ public: // static configuration helpers template<class _Object> static devcb2_base &set_irq_handler(device_t &device, _Object object) { return downcast<ym2203_device &>(device).m_irq_handler.set_callback(object); } - static void set_ay8910_config(device_t &device, const ay8910_interface *ay8910_config) { downcast<ym2203_device &>(device).m_ay8910_config = ay8910_config; } DECLARE_READ8_MEMBER( read ); DECLARE_WRITE8_MEMBER( write ); @@ -34,9 +30,9 @@ public: void _IRQHandler(int irq); void _timer_handler(int c,int count,int clock); void _ym2203_update_request(); + protected: // device-level overrides - virtual void device_config_complete(); virtual void device_start(); virtual void device_post_load(); virtual void device_stop(); @@ -50,7 +46,6 @@ private: emu_timer * m_timer[2]; void * m_chip; devcb2_write_line m_irq_handler; - const ay8910_interface *m_ay8910_config; }; extern const device_type YM2203; |